mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-19 22:55:31 -04:00
fingerprint CSS and JS, set one week browser cache
...and LOTS of tidying partials
This commit is contained in:
@@ -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>
|
||||
|
@@ -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 -}}
|
Reference in New Issue
Block a user