diff options
Diffstat (limited to 'www/layouts/_default')
-rw-r--r-- | www/layouts/_default/baseof.html | 9 | ||||
-rw-r--r-- | www/layouts/_default/single.html | 8 |
2 files changed, 9 insertions, 8 deletions
diff --git a/www/layouts/_default/baseof.html b/www/layouts/_default/baseof.html index defa6ac..55954d3 100644 --- a/www/layouts/_default/baseof.html +++ b/www/layouts/_default/baseof.html @@ -9,18 +9,13 @@ <title>{{ block "title" . }} {{ .Site.Title }} {{ end }}</title> - {{ with resources.Get "catppuccin-latte.css" | minify | fingerprint }} - <style>{{ printf `@import url(%s);` .RelPermalink | safeCSS }}</style> - {{ end }} - {{ with resources.Get "catppuccin-mocha.css" | minify | fingerprint }} - <style>{{ printf `@import url(%s) (prefers-color-scheme: dark);` .RelPermalink | safeCSS }}</style> - {{ end }} + {{ partial "js.html" "color-scheme.ts" }} + {{ partial "css-res.html" (partial "highlight.html" dict) }} {{ partial "css.html" "base-style.css" }} {{ block "head" . }} {{ end }} </head> <body> - {{ partial "js.html" "color-scheme.ts" }} <div id="slogan"> <span>🙃The world is full of pain, but we can fix it with love!</span> </div> diff --git a/www/layouts/_default/single.html b/www/layouts/_default/single.html index 83297cf..1f267eb 100644 --- a/www/layouts/_default/single.html +++ b/www/layouts/_default/single.html @@ -10,7 +10,13 @@ {{ partial "nav.html" . }} <h1 class="post-title">{{ .Title }}</h1> <hr/> - <p class="post-info"><span class="created">{{ partial "date.html" .Date }}</span> <span class="last-updated">Last updated: {{ partial "date.html" .Lastmod }}</span></p> + <p class="post-info"> + <span class="created">{{ partial "date.html" .Date }}</span> | + <span class="words">{{ .WordCount }} words</span> + {{ if ne .Lastmod .Date }} + <span class="last-updated">Last updated: {{ partial "date.html" .Lastmod }}</span> + {{ end}} + </p> {{ .Content }} <hr class="end-hr"/> {{ partial "nav.html" . }} |