Mercurial > p > roundup > code
comparison website/www/_templates/layout.html @ 6790:1800964b9347
For search page put js at the beginning.
The search page has embedded js. Needs the libraries loaded in the
head.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Wed, 13 Jul 2022 01:49:41 -0400 |
| parents | c90104abe508 |
| children | b5b1f2830e23 |
comparison
equal
deleted
inserted
replaced
| 6789:9965e6b02b8e | 6790:1800964b9347 |
|---|---|
| 30 VERSION: '{{ release|e }}', | 30 VERSION: '{{ release|e }}', |
| 31 COLLAPSE_MODINDEX: false, | 31 COLLAPSE_MODINDEX: false, |
| 32 FILE_SUFFIX: '{{ file_suffix }}' | 32 FILE_SUFFIX: '{{ file_suffix }}' |
| 33 }; | 33 }; |
| 34 </script> | 34 </script> |
| 35 {%- if pagename == 'search' %} | |
| 36 {%- for scriptfile in script_files %} | |
| 37 <script type="text/javascript" src="{{ pathto(scriptfile, 1) }}"></script> | |
| 38 {%- endfor %} | |
| 39 <script type="text/javascript">$('#searchbox').show(0);</script> | |
| 40 {%- endif %} | |
| 35 {%- if pageurl %} | 41 {%- if pageurl %} |
| 36 <link rel="canonical" href="{{ pageurl|e }}" /> | 42 <link rel="canonical" href="{{ pageurl|e }}" /> |
| 37 {%- endif %} | 43 {%- endif %} |
| 38 {%- if use_opensearch %} | 44 {%- if use_opensearch %} |
| 39 <link rel="search" type="application/opensearchdescription+xml" | 45 <link rel="search" type="application/opensearchdescription+xml" |
| 62 {%- endif %} | 68 {%- endif %} |
| 63 {%- if prev %} | 69 {%- if prev %} |
| 64 <link rel="prev" title="{{ prev.title|striptags }}" href="{{ prev.link|e }}" /> | 70 <link rel="prev" title="{{ prev.title|striptags }}" href="{{ prev.link|e }}" /> |
| 65 {%- endif %} | 71 {%- endif %} |
| 66 {%- endblock %} | 72 {%- endblock %} |
| 67 {%- block extrahead %} {% endblock %} | |
| 68 </head> | 73 </head> |
| 69 <body> | 74 <body> |
| 70 <div id="skiplink"><a href="#main">Skip to main content</a></div> | 75 <div id="skiplink"><a href="#main">Skip to main content</a></div> |
| 71 <div class="header"><h1>Roundup</h1> | 76 <div class="header"><h1>Roundup</h1> |
| 72 {%- if pagename != "search" %} | 77 {%- if pagename != "search" %} |
| 136 </script> | 141 </script> |
| 137 <script data-goatcounter="https://stats.rouilj.dynamic-dns.net/count" | 142 <script data-goatcounter="https://stats.rouilj.dynamic-dns.net/count" |
| 138 integrity="sha384-QGgNMMRFTi8ul5kHJ+vXysPe8gySvSA/Y3rpXZiRLzKPIw8CWY+a3ObKmQsyDr+a" | 143 integrity="sha384-QGgNMMRFTi8ul5kHJ+vXysPe8gySvSA/Y3rpXZiRLzKPIw8CWY+a3ObKmQsyDr+a" |
| 139 async="" src="{{ pathto('_static/goatcounter_count.v3.js', 1) }}"> | 144 async="" src="{{ pathto('_static/goatcounter_count.v3.js', 1) }}"> |
| 140 </script> | 145 </script> |
| 146 {%- if pagename != 'search' %} | |
| 141 {%- for scriptfile in script_files %} | 147 {%- for scriptfile in script_files %} |
| 142 <script type="text/javascript" src="{{ pathto(scriptfile, 1) }}"></script> | 148 <script type="text/javascript" src="{{ pathto(scriptfile, 1) }}"></script> |
| 143 {%- endfor %} | 149 {%- endfor %} |
| 144 <script type="text/javascript">$('#searchbox').show(0);</script> | 150 <script type="text/javascript">$('#searchbox').show(0);</script> |
| 151 {%- endif %} | |
| 152 {%- block extrahead %} {% endblock %} | |
| 153 | |
| 145 </body> | 154 </body> |
| 146 </html> | 155 </html> |
