|
@ -3,13 +3,20 @@ |
|
|
{{if not .IsHome }} {{ $pages = .Pages }} {{ end }} |
|
|
{{if not .IsHome }} {{ $pages = .Pages }} {{ end }} |
|
|
|
|
|
|
|
|
<main> |
|
|
<main> |
|
|
<h1>{{ .Title | markdownify | title }}</h1> |
|
|
{{ if not .IsHome }} |
|
|
|
|
|
<h1>{{ .Title | markdownify | lower }}</h1> |
|
|
|
|
|
{{ else }} |
|
|
|
|
|
<h1>Beet Box</h1> |
|
|
|
|
|
{{ end }} |
|
|
|
|
|
|
|
|
{{ if and .IsSection (not .IsHome) }} {{ partial "article-meta.html" . }} {{ end }} |
|
|
{{ if and .IsSection (not .IsHome) }} {{ partial "article-meta.html" . }} {{ end }} |
|
|
|
|
|
|
|
|
{{ with .Content }} |
|
|
{{ with .Content }} |
|
|
<section> |
|
|
<section> |
|
|
{{ . }} |
|
|
{{ . }} |
|
|
</section> |
|
|
</section> |
|
|
{{- end }} |
|
|
{{- end }} |
|
|
|
|
|
|
|
|
</main> |
|
|
</main> |
|
|
|
|
|
|
|
|
{{ with $pages.Limit 4 }} |
|
|
{{ with $pages.Limit 4 }} |
|
|