summaryrefslogtreecommitdiff
path: root/themes/JustZvan/layouts/page.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/JustZvan/layouts/page.html')
-rw-r--r--themes/JustZvan/layouts/page.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/themes/JustZvan/layouts/page.html b/themes/JustZvan/layouts/page.html
new file mode 100644
index 0000000..0c74e02
--- /dev/null
+++ b/themes/JustZvan/layouts/page.html
@@ -0,0 +1,18 @@
+{{ define "main" }}
+<div class="post-page">
+ <div class="page-header">
+ <h1>{{ .Title }}</h1>
+ {{ if .Date }}
+ {{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
+ {{ $dateHuman := .Date | time.Format ":date_long" }}
+ <time datetime="{{ $dateMachine }}" class="page-date">{{ $dateHuman }}</time>
+ {{ end }}
+ </div>
+
+ <div class="page-content">
+ {{ .Content }}
+ </div>
+
+ {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
+</div>
+{{ end }}