diff options
| author | Jieiku | 2022-05-31 03:00:20 -0700 |
|---|---|---|
| committer | Jieiku | 2022-05-31 03:00:20 -0700 |
| commit | 31395878a127a6dd474da50c2f93956588aa2135 (patch) | |
| tree | 0122eb9d2d085ceb87016e3c50912d70462f9f87 /templates/base.html | |
| parent | 04631b1f651fd677baf837be318084b91cb9acf4 (diff) | |
| download | abridge-31395878a127a6dd474da50c2f93956588aa2135.tar.gz abridge-31395878a127a6dd474da50c2f93956588aa2135.tar.bz2 abridge-31395878a127a6dd474da50c2f93956588aa2135.zip | |
HTML5 Validation & Cleanup
Diffstat (limited to 'templates/base.html')
| -rw-r--r-- | templates/base.html | 42 |
1 files changed, 18 insertions, 24 deletions
diff --git a/templates/base.html b/templates/base.html index 0bbd48d..b1a3615 100644 --- a/templates/base.html +++ b/templates/base.html @@ -5,9 +5,9 @@ <!DOCTYPE html> <html lang="{{ config.extra.language_code | default(value="en-US") }}"> <head> - <meta charset="utf-8"> - <meta http-equiv="x-ua-compatible" content="ie=edge"> - <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> + <meta charset="utf-8" /> + <meta http-equiv="x-ua-compatible" content="ie=edge" /> + <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" /> {{- macros_head::resource() }} {{- macros_head::stylesheet() }} {%- block seo %} @@ -19,29 +19,30 @@ {%- endblock seo %} {{- macros_head::favicons() }} {{- macros_head::security() }} - <meta name="HandheldFriendly" content="True"> - <meta name="mobile-web-app-capable" content="yes"> - <meta name="apple-mobile-web-app-capable" content="yes"> - <meta name="apple-mobile-web-app-status-bar-style" content="default"> + <meta name="HandheldFriendly" content="True" /> + <meta name="mobile-web-app-capable" content="yes" /> + <meta name="apple-mobile-web-app-capable" content="yes" /> + <meta name="apple-mobile-web-app-status-bar-style" content="default" /> {{- macros_head::math() }} + <noscript><style>.searchd{display:none;}</style></noscript> </head> <body> {%- block header %} <header> <nav> - <header> + <div> {%- if config.extra.logo %} - <h1><a href="{{ config.base_url | safe }}{%- if config.extra.uglyurls %}/index.html{%- endif %}">{%- if config.extra.logo.file %}<img src="{{ config.base_url | safe }}/{{ config.extra.logo.file | safe }}" {%- if config.extra.logo.alt %}alt="{{ config.extra.logo.alt | safe }}" {%- endif %}{%- if config.extra.logo.width %}width="{{ config.extra.logo.width | safe }}" {%- endif %}{%- if config.extra.logo.height %}height="{{ config.extra.logo.height | safe }}"{%- endif %}/>{%- endif %}{%- if config.extra.logo.text %}{{ config.extra.logo.text | safe }}{%- endif %}</a></h1> + <h1><a href="{{ config.base_url | safe }}{%- if config.extra.uglyurls %}/index.html{%- endif %}">{%- if config.extra.logo.file %}<img src="{{ config.base_url | safe }}/{{ config.extra.logo.file | safe }}"{%- if config.extra.logo.alt %} alt="{{ config.extra.logo.alt | safe }}"{%- endif %}{%- if config.extra.logo.width %} width="{{ config.extra.logo.width | safe }}"{%- endif %}{%- if config.extra.logo.height %} height="{{ config.extra.logo.height | safe }}"{%- endif %} />{%- endif %}{%- if config.extra.logo.text %}{{ config.extra.logo.text | safe }}{%- endif %}</a></h1> {%- elif config.extra.textlogo %} <h1><a href="{{ config.base_url | safe }}{%- if config.extra.uglyurls %}/index.html{%- endif %}">{{ config.extra.textlogo | safe }}</a></h1> {%- elif config.title %} <h1><a href="{{ config.base_url | safe }}{%- if config.extra.uglyurls %}/index.html{%- endif %}">{{ config.title | safe }}</a></h1> {%- endif %} - </header> + </div> <div> <ul> {%- for i in config.extra.menu %} - <li><h2><a href="{{ get_url(path=i.url, trailing_slash=i.slash) }}{%- if i.slash and config.extra.uglyurls %}index.html{%- endif %}">{{ i.name | safe }}</a></h2></li> + <li><h2><a href="{{ get_url(path=i.url, trailing_slash=i.slash) }}{%- if i.slash and config.extra.uglyurls %}index.html{%- endif %}">{{ i.name | safe }}</a></h2> </li> {%- endfor %} </ul> </div> @@ -49,14 +50,8 @@ <div> <form onsubmit="return goSearch()"> <div class="searchd"> - <input id="userinput" type="search" placeholder="Search" autocomplete="off"> - <button type="submit" title="Search"> - {%- if config.extra.fontawesome %} - <i class="svgs fa-solid fa-magnifying-glass"></i> - {%- else %} - <i class="svgs search"></i> - {%- endif %} - </button> + <input id="userinput" type="search" placeholder="Search" autocomplete="off" /> + <button type="submit" title="Search">{%- if config.extra.fontawesome %}<i class="svgs fa-solid fa-magnifying-glass"></i>{%- else %}<i class="svgs search"></i>{%- endif %}</button> </div> <div><div id="suggestions"></div></div> </form> @@ -69,7 +64,7 @@ {%- endif %} {%- endif %} {%- if config.extra.headhr %} - <hr> + <hr /> {%- endif %} </header> {%- endblock header %} @@ -80,9 +75,9 @@ {%- block footer %} <footer> {%- if config.extra.foothr %} - <hr> + <hr /> {%- endif %} - <center> + <div class="c"> <p> {{- social_macros::social_links(social_config=config.extra.social) }} </p> @@ -107,9 +102,8 @@ <p>Powered by <a href="https://www.getzola.org/">Zola</a> and <a href="https://github.com/jieiku/abridge/">Abridge</a></p> {%- endif %} {%- endif %} - </center> + </div> </footer> {%- endblock footer %} -<noscript><style>.searchd{display:none;}</style></noscript> </body> </html>
\ No newline at end of file |
