diff options
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/articles/page.html | 11 | ||||
| -rw-r--r-- | layouts/page.html | 8 |
2 files changed, 12 insertions, 7 deletions
diff --git a/layouts/articles/page.html b/layouts/articles/page.html new file mode 100644 index 0000000..8b8eb16 --- /dev/null +++ b/layouts/articles/page.html @@ -0,0 +1,11 @@ +{{ define "main" }} + {{- $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" -}} + {{- $dateHuman := .Date | time.Format "2006-01-02" -}} + <div> + <h1 class="title">{{ .Title }}</h1> + <time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time> + </div> + + {{ .Content }} + {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }} +{{ end }} diff --git a/layouts/page.html b/layouts/page.html index 8b8eb16..bac8b18 100644 --- a/layouts/page.html +++ b/layouts/page.html @@ -1,11 +1,5 @@ {{ define "main" }} - {{- $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" -}} - {{- $dateHuman := .Date | time.Format "2006-01-02" -}} - <div> - <h1 class="title">{{ .Title }}</h1> - <time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time> - </div> - + <h1 class="title">{{ .Title }}</h1> {{ .Content }} {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }} {{ end }} |