Compare commits
2 commits
f387177da5
...
2e5ddecd86
Author | SHA1 | Date | |
---|---|---|---|
2e5ddecd86 | |||
92b3bff53d |
3 changed files with 10 additions and 1 deletions
|
@ -115,3 +115,9 @@ article {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
hgroup {
|
||||||
|
p {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -1,10 +1,13 @@
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
|
<hgroup>
|
||||||
<h1>{{ .Title }}</h1>
|
<h1>{{ .Title }}</h1>
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
|
</hgroup>
|
||||||
{{ range .Pages }}
|
{{ range .Pages }}
|
||||||
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
|
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
|
||||||
{{ $dateHuman := .Date.Format "January 2, 2006" }}
|
{{ $dateHuman := .Date.Format "January 2, 2006" }}
|
||||||
{{ $dateMachine := .Date.Format "2006-01-02T15:04:05-07:00" }}
|
{{ $dateMachine := .Date.Format "2006-01-02T15:04:05-07:00" }}
|
||||||
|
<p><b>reading time:</b> {{ lower .ReadingTime }} mins</p>
|
||||||
<p><b>first posted:</b> <time datetime="{{ $dateMachine }}">{{ lower $dateHuman }}</time></p>
|
<p><b>first posted:</b> <time datetime="{{ $dateMachine }}">{{ lower $dateHuman }}</time></p>
|
||||||
<caption><blockquote>{{ .Description }}</blockquote></caption>
|
<caption><blockquote>{{ .Description }}</blockquote></caption>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
{{ $lastUpdated := .Lastmod.Format "January 2, 2006" }}
|
{{ $lastUpdated := .Lastmod.Format "January 2, 2006" }}
|
||||||
{{ $lastMachine := .Lastmod.Format "2006-01-02T15:04:05-07:00" }}
|
{{ $lastMachine := .Lastmod.Format "2006-01-02T15:04:05-07:00" }}
|
||||||
<blockquote>
|
<blockquote>
|
||||||
|
<p><b>reading time:</b> {{ lower .ReadingTime }} mins</p>
|
||||||
<p><b>first posted:</b> <time datetime="{{ $dateMachine }}">{{ lower $dateHuman }}</time></p>
|
<p><b>first posted:</b> <time datetime="{{ $dateMachine }}">{{ lower $dateHuman }}</time></p>
|
||||||
{{ if ne $lastUpdated $dateHuman }}
|
{{ if ne $lastUpdated $dateHuman }}
|
||||||
<p><b>last updated:</b> <time datetime="{{ $lastMachine }}">{{ lower $lastUpdated }}</time></p>
|
<p><b>last updated:</b> <time datetime="{{ $lastMachine }}">{{ lower $lastUpdated }}</time></p>
|
||||||
|
@ -16,6 +17,5 @@
|
||||||
{{ .TableOfContents }}
|
{{ .TableOfContents }}
|
||||||
<hr>
|
<hr>
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
{{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
|
|
||||||
</article>
|
</article>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in a new issue