Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Google programmable site search #3207

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion docs/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -422,4 +422,14 @@ ul.bulleted-list > li > * {

.code {
font-family: "EssentialPragmataPro", monospace, sans-serif;
}
}

/* Google search */
div.gsc-results-wrapper-overlay {
background-color: var(--raisin-black);
}

li.search {
margin-top: 3em;
width: 70%;
}
11 changes: 8 additions & 3 deletions docs/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
content="Please is a cross-language build system with an emphasis on high performance, portability, extensibility and correctness."
/>
<meta property="og:title" content="{{ .Title }}" />
<meta
<meta
property="og:description"
content="Please is a cross-language build system with an emphasis on high performance, portability, extensibility and correctness."
/>
Expand Down Expand Up @@ -52,6 +52,7 @@
<link rel="stylesheet" href="/styles.css" />
<script src="/action.js"></script>
<script src="/tabs.js"></script>
<script async src="https://cse.google.com/cse.js?cx=a49b06597fd4f470d"></script>
</head>
<body
class="silver bg-raisin-black f5 lh-copy nested-list-reset"
Expand Down Expand Up @@ -372,20 +373,24 @@
>
</li>

<li class="search">
<div class="gcse-search" enableAutoComplete="true"></div>
<li>

</ul>
</nav>
<div class="ph3 pb4 w-80-l mw8-l">
<div class="dn db-l" aria-hidden="true">
<div class="h4 relative">
<img
class="absolute {{rotate 5}}"
style="height: 10rem; top: -7rem; left: 20%;"
style="height: 10rem; top: -7rem; left: 20%; z-index: -1;"
alt=""
src="/images/{{shape 4}}_{{colour 7}}.png"
/>
<img
class="absolute {{rotate 6}}"
style="height: 8rem; top: 0; right: 20%;"
style="height: 8rem; top: 0; right: 20%; z-index: -1;"
alt=""
src="/images/{{shape 5}}_{{colour 8}}.png"
/>
Expand Down
Loading