diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2025-12-23 16:34:08 -0330 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2025-12-23 16:34:08 -0330 |
| commit | 55ed353216554d6327984fa8f1cf707b70e06ac1 (patch) | |
| tree | 44fe27565920f4876f6fcf2dafd94ae143e2709a /layouts/page.html | |
| parent | 723c98c1d7ae8d74840c5fa30bd2e38256e17332 (diff) | |
| download | samanthony.xyz-55ed353216554d6327984fa8f1cf707b70e06ac1.zip | |
move layout from theme to site
Diffstat (limited to 'layouts/page.html')
| -rw-r--r-- | layouts/page.html | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/layouts/page.html b/layouts/page.html new file mode 100644 index 0000000..7e286c8 --- /dev/null +++ b/layouts/page.html @@ -0,0 +1,10 @@ +{{ define "main" }} + <h1>{{ .Title }}</h1> + + {{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }} + {{ $dateHuman := .Date | time.Format ":date_long" }} + <time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time> + + {{ .Content }} + {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }} +{{ end }} |