diff options
| author | Jieiku | 2022-06-12 18:47:34 -0700 |
|---|---|---|
| committer | Jieiku | 2022-06-12 18:47:34 -0700 |
| commit | 9ac96c9c0e205584004faed5ca03040450606fb2 (patch) | |
| tree | b4b945dc2907e22b36d27f1e25c33c91cf4f8051 | |
| parent | 6b9296d49aa4657054547b55607fdccab1741a58 (diff) | |
| download | abridge-9ac96c9c0e205584004faed5ca03040450606fb2.tar.gz abridge-9ac96c9c0e205584004faed5ca03040450606fb2.tar.bz2 abridge-9ac96c9c0e205584004faed5ca03040450606fb2.zip | |
Lighthouse Fixes
| -rw-r--r-- | templates/base.html | 3 | ||||
| -rw-r--r-- | templates/index.html | 2 | ||||
| -rw-r--r-- | templates/macros/head.html | 4 |
3 files changed, 7 insertions, 2 deletions
diff --git a/templates/base.html b/templates/base.html index 3a59395..0792345 100644 --- a/templates/base.html +++ b/templates/base.html @@ -7,10 +7,11 @@ <head> {{- macros_head::theme() }} {{- macros_head::stylesheets() }} - {{- macros_head::js() }} <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::stylesheets_preload() }} + {{- macros_head::js() }} {{- macros_head::feed() }} {%- block seo %} {%- if config.extra.title_separator %} diff --git a/templates/index.html b/templates/index.html index 422ad22..9c25fa4 100644 --- a/templates/index.html +++ b/templates/index.html @@ -57,7 +57,7 @@ {%- if config.extra.recent | default(value=true) %} <div class="toc"> <div class="toc-sticky"> - <h3>Recent Posts</h3> + <h1><span class="s75">Recent Posts</span></h1> {%- for page in section_item.pages | slice(end=config.extra.recent_items) %} {{- page_macros::page_listing(page=page) }} {%- endfor %} diff --git a/templates/macros/head.html b/templates/macros/head.html index e5ee0ac..e0fb499 100644 --- a/templates/macros/head.html +++ b/templates/macros/head.html @@ -12,6 +12,10 @@ <link rel="stylesheet" href="{{ get_url(path=i, trailing_slash=false, cachebust=true) | safe }}" /> {%- endfor %}{%- endif %} +{%- endmacro %} + +{%- macro stylesheets_preload() %} + {%- if config.extra.fonts %}{%- for i in config.extra.fonts %} {%- if i.url is matching("^http[s]?://") %} <link rel="preload" as="style" class="preStyle" href="{{ i.url | safe }}" crossorigin="anonymous" /> |
