diff options
author | Franck Cuny <franck@fcuny.net> | 2024-07-04 11:36:33 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2024-07-04 11:36:33 -0700 |
commit | fccd15aec3507fd3f0cb4a2c18a0ec1af1d69c1f (patch) | |
tree | f506115024e7e6247279409fa053e59927ec398c /layouts/_default | |
parent | dont format html files with prettier (diff) | |
download | fcuny.net-fccd15aec3507fd3f0cb4a2c18a0ec1af1d69c1f.tar.gz |
migrate to zola
Diffstat (limited to 'layouts/_default')
-rw-r--r-- | layouts/_default/baseof.html | 7 | ||||
-rw-r--r-- | layouts/_default/single.html | 28 |
2 files changed, 0 insertions, 35 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html deleted file mode 100644 index b2fbbc1..0000000 --- a/layouts/_default/baseof.html +++ /dev/null @@ -1,7 +0,0 @@ -<!doctype html> -<html lang="en"> - {{ partial "head.html" . }} - <body> - <main>{{ block "main" . }}{{ end }}</main> - </body> -</html> diff --git a/layouts/_default/single.html b/layouts/_default/single.html deleted file mode 100644 index 2919b8f..0000000 --- a/layouts/_default/single.html +++ /dev/null @@ -1,28 +0,0 @@ -{{ define "main" }} - -<div> - <h1>{{ .Title }}</h1> - - <div id="meta"> - {{- $pub := .Date.Format "Jan 2, 2006" -}} - {{- $mod := "" -}} - - {{- if (not .GitInfo) }} - {{- $mod = .Lastmod.Format "Jan 2, 2006" -}} - {{ else }} - {{- $mod = .Page.GitInfo.CommitDate.Format "Jan 2, 2006" -}} - {{ end -}} - - {{ if eq $pub $mod }} - <span id="meta_date">posted on {{ $pub }}</span> - {{ else }} - <span id="meta_date">posted on {{ $pub }} - last modified {{ $mod }}</span> - {{ end }} - </div> - - <article>{{ .Content }}</article> - - <a href="/">↑ back home</a> -</div> - -{{ end }} |