feat: initial import
This commit is contained in:
commit
03ab1091b1
50 changed files with 1146 additions and 0 deletions
23
layouts/posts/page.html
Normal file
23
layouts/posts/page.html
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{{ define "main" }}
|
||||
<h1 class="page__title">{{ .Title }}</h1>
|
||||
|
||||
{{ $dateMachine := .Lastmod | time.Format "2006-01-02T15:04:05-07:00" }}
|
||||
{{ $dateHuman := .Lastmod | time.Format ":date_long" }}
|
||||
{{ $dateMachineP := .PublishDate | time.Format "2006-01-02T15:04:05-07:00" }}
|
||||
{{ $dateHumanP := .PublishDate | time.Format ":date_long" }}
|
||||
{{ if .Params.author }}
|
||||
<div class="page__author">{{ printf (T "By") .Params.author }}</div>
|
||||
{{ end }}
|
||||
<div class="page__date">
|
||||
{{ T "Published" }} <time datetime="{{ $dateMachineP }}">{{ $dateHumanP }}</time>
|
||||
<br/>
|
||||
{{ T "Updated" }} <time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
|
||||
|
||||
<div class="page__tag">
|
||||
{{ partial "page-tags.html" (dict "taxonomy" "tags" "page" .) }}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue