diff options
| author | verdant <i@glowisle.me> | 2026-04-11 18:27:20 +0800 |
|---|---|---|
| committer | verdant <i@glowisle.me> | 2026-04-11 18:27:20 +0800 |
| commit | 31cd7a3067a9996b7140aeaefb6c97e08db2f78f (patch) | |
| tree | 752ea978c1e6e1f0dd24cd15d129034a6bb18c34 /layouts/_default | |
| parent | 92e642b3d9e2df106e6ad3aa38e4be6966d44268 (diff) | |
| download | blog-31cd7a3067a9996b7140aeaefb6c97e08db2f78f.tar.gz blog-31cd7a3067a9996b7140aeaefb6c97e08db2f78f.zip | |
update
Diffstat (limited to 'layouts/_default')
| -rw-r--r-- | layouts/_default/baseof.html | 64 | ||||
| -rw-r--r-- | layouts/_default/single.html | 25 |
2 files changed, 54 insertions, 35 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index ebc6a41..b78e7ef 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,44 +1,44 @@ <!doctype html> -<GNU> - ______ ____ _____ _____ _____ _________ _______ _ __ _ _ - .' ___ ||_ \|_ _||_ _||_ _| | _ _ | |_ __ \ / |_ [ | / |_ / |_ -/ .' \_| | \ | | | | | | |_/ | | \_|.---. _ .--. _ .--. _ __ | |__) |_ .--. ,--. `| |-'.---. | |--. .---.`| |-'`| |-' -| | ____ | |\ \| | | ' ' | | | / /__\\[ `/'`\][ `/'`\][ \ [ ] | ___/[ `/'`\]`'_\ : | | / /'`\] | .-. |/ /__\\| | | | -\ `.___] |_| |_\ |_ \ \__/ / _| |_ | \__., | | | | \ '/ / _| |_ | | // | |,| |,| \__. | | | || \__.,| |, | |, - `._____.'|_____|\____| `.__.' |_____| '.__.'[___] [___] [\_: / |_____| [___] \'-;__/\__/'.___.'[___]|__]'.__.'\__/ \__/ - \__.' - - "A man is not dead while his name is still spoken." -</GNU> <html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }}"> - <head> - <meta http-equiv="X-Clacks-Overhead" content="GNU Terry Pratchett" /> - <meta charset="utf-8" /> - <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - {{- partial "favicon.html" . -}} - <title>{{ .Title }}</title> + <head> + <link rel="stylesheet" href="/style.css" /> + <meta http-equiv="X-Clacks-Overhead" content="GNU Terry Pratchett" /> + <meta charset="utf-8" /> + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> + {{- partial "favicon.html" . -}} + <title>{{ .Title }}</title> - {{- partial "seo_tags.html" . -}} - <meta name="referrer" content="no-referrer-when-downgrade" /> + {{- partial "seo_tags.html" . -}} + <meta name="referrer" content="no-referrer-when-downgrade" /> - {{ with .OutputFormats.Get "rss" -}} {{ printf ` - <link rel="%s" type="%s" href="%s" title="%s" /> - ` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{ end -}} - {{- partial "style.html" . -}} + {{ with .OutputFormats.Get "rss" -}} {{ printf ` + <link rel="%s" type="%s" href="%s" title="%s" /> + ` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{ end -}} - <!-- A partial to be overwritten by the user. + <!-- A partial to be overwritten by the user. Simply place a custom_head.html into your local /layouts/partials-directory --> - {{- partial "custom_head.html" . -}} - </head> + {{- partial "custom_head.html" . -}} + </head> - <body> - <main>{{- block "main" . }}{{- end }}</main> - <footer>{{- partial "footer.html" . -}}</footer> + <body> + <main>{{- block "main" . }}{{- end }}</main> + <footer>{{- partial "footer.html" . -}}</footer> - <!-- A partial to be overwritten by the user. + <!-- A partial to be overwritten by the user. Simply place a custom_body.html into your local /layouts/partials-directory --> - {{- partial "custom_body.html" . -}} - </body> + {{- partial "custom_body.html" . -}} + </body> + <GNU> + ______ ____ _____ _____ _____ _________ _______ _ __ _ _ .' ___ ||_ \|_ _||_ + _||_ _| | _ _ | |_ __ \ / |_ [ | / |_ / |_ / .' \_| | \ | | | | | | |_/ | | + \_|.---. _ .--. _ .--. _ __ | |__) |_ .--. ,--. `| |-'.---. | |--. .---.`| + |-'`| |-' | | ____ | |\ \| | | ' ' | | | / /__\\[ `/'`\][ `/'`\][ \ [ ] | + ___/[ `/'`\]`'_\ : | | / /'`\] | .-. |/ /__\\| | | | \ `.___] |_| |_\ |_ \ + \__/ / _| |_ | \__., | | | | \ '/ / _| |_ | | // | |,| |,| \__. | | | || + \__.,| |, | |, `._____.'|_____|\____| `.__.' |_____| '.__.'[___] [___] [\_: + / |_____| [___] \'-;__/\__/'.___.'[___]|__]'.__.'\__/ \__/ \__.' "A man is + not dead while his name is still spoken." + </GNU> </html> diff --git a/layouts/_default/single.html b/layouts/_default/single.html index d7b9807..ee0b227 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -12,6 +12,24 @@ <a href="{{ .RelPermalink }}" class="item-link">{{ .Title }}</a> </h1> +<div class="post-meta"> + <div class="post-meta-item post-date"> + <time class="dt-published" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}"> + {{ .Date.Format "January 02, 2006" }} + </time> + </div> + + <div class="post-meta-item post-category"> + + {{ range .Params.categories }} + {{ $url := printf "/categories/%s/" (. | urlize) }} +• + <a href="{{ $url }}" class="category-link">{{ . }}</a> + {{ end }} + </div> +</div> + + <div class="e-content">{{ .Content }}</div> </article> <a class="u-url" href="{{ .Permalink }}" style="display: none">Permalink</a> @@ -127,9 +145,9 @@ <!-- Place the TOC at the end to ensure the article content loads first. --> -{{ $tocEnabled := default .Site.Params.toc .Params.toc }} {{ if $tocEnabled }} -<div class="toc">{{ partial "toc.html" . }}</div> -{{ end }} +<!-- {{ $tocEnabled := default .Site.Params.toc .Params.toc }} {{ if $tocEnabled }} --> +<!-- <div class="toc">{{ partial "toc.html" . }}</div> --> +<!-- {{ end }} --> <!-- {{ if .Params.comments | default true }} --> <!-- <div class="comments-and-webmentions"> --> @@ -308,5 +326,6 @@ </div> {{ end }} {{ end }} + <p>有想对我说的?<a href="mailto:i@glowisle.me?subject=回复《{{ .Title }}》">发一封邮件吧</a>。</p> </div> {{ end }} |
