|
1 | 1 | <header> |
| 2 | + <div id="brand"> |
| 3 | + <a id=" logo" href=" {{ relURL "" }}" ><img src=" {{ relURL " images/ [email protected]" }}" width=" 110" height=" 46" alt=" Git" class=" no-filter" /></a> |
| 4 | + <span id="tagline"></span> |
| 5 | + <script type="text/javascript"> |
| 6 | + const taglines = [ |
| 7 | + "fast-version-control", |
| 8 | + "everything-is-local", |
| 9 | + "distributed-even-if-your-workflow-isnt", |
| 10 | + "local-branching-on-the-cheap", |
| 11 | + "distributed-is-the-new-centralized" |
| 12 | + ]; |
| 13 | + var tagline = taglines[Math.floor(Math.random() * taglines.length)]; |
| 14 | + document.getElementById('tagline').innerHTML = '--' + tagline; |
| 15 | + </script> |
| 16 | + </div> |
2 | 17 |
|
3 | | - <a href=" {{ relURL "" }}" ><img src=" {{ relURL " images/ [email protected]" }}" width=" 110" height=" 46" alt=" Git" class=" no-filter" /></a> |
4 | | - <span id="tagline"></span> |
5 | | - <script type="text/javascript"> |
6 | | - const taglines = [ |
7 | | - "fast-version-control", |
8 | | - "everything-is-local", |
9 | | - "distributed-even-if-your-workflow-isnt", |
10 | | - "local-branching-on-the-cheap", |
11 | | - "distributed-is-the-new-centralized" |
12 | | - ]; |
13 | | - var tagline = taglines[Math.floor(Math.random() * taglines.length)]; |
14 | | - document.getElementById('tagline').innerHTML = '--' + tagline; |
15 | | - </script> |
16 | | - |
17 | | - <img src="{{ relURL "images/dark-mode.svg" }}" id="dark-mode-button" /> |
18 | | - {{ if ne (.Scratch.Get "section") "search" }} |
19 | | - <form id="search" action="{{ relURL "search/results" }}"> |
20 | | - <input id="search-text" name="search" placeholder="Type / to search entire site…" autocomplete="off" type="text" /> |
21 | | - </form> |
22 | | - <div id="search-results"></div> |
23 | | - {{ end }} |
24 | | - |
| 18 | + <div> |
| 19 | + {{ if ne (.Scratch.Get "section") "search" }} |
| 20 | + <div id="search-container"> |
| 21 | + <form id="search" action="{{ relURL "search/results" }}"> |
| 22 | + <input id="search-text" name="search" placeholder="Type / to search entire site…" autocomplete="off" type="text" /> |
| 23 | + </form> |
| 24 | + <div id="search-results"></div> |
| 25 | + </div> |
| 26 | + {{ end }} |
| 27 | + <img src="{{ relURL "images/dark-mode.svg" }}" id="dark-mode-button" /> |
| 28 | + </div> |
25 | 29 | </header> |
0 commit comments