fingerprint CSS and JS, set one week browser cache

...and LOTS of tidying partials
This commit is contained in:
jake committed 2020-04-25 11:15:31 -04:00
1 parent d2648a68be
commit adfa73b5fc
25 files changed
+86 -110

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
<header>
<nav>
<a class="no-underline" href="{{ .Site.BaseURL }}" id="logo" rel="me author" aria-label="{{ .Site.Title }}">
{{ partialCached "page/logo" . }}
{{ partialCached "svg/logo.svg" (dict "width" 30 "height" 45) }}
<h1 id="name">{{ .Site.Title }}</h1>
</a>
<ul>
-7
View File
@@ -1,7 +0,0 @@
{{ $logo := resources.Get "img/logo.svg" -}}
{{ $svg := $logo.Content -}}
{{ $svg = replaceRE "<\\?xml.+\\?>" "" $svg -}}
{{ $svg = replace $svg "<svg" "<svg width=\"30\" height=\"45\"" -}}
{{ printf "<!-- inlined: %s -->" $logo.Permalink | safeHTML }}
{{ $svg | safeHTML -}}