diff options
Diffstat (limited to 'layouts/_default')
-rw-r--r-- | layouts/_default/author.html | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/layouts/_default/author.html b/layouts/_default/author.html new file mode 100644 index 0000000..1179500 --- /dev/null +++ b/layouts/_default/author.html @@ -0,0 +1,26 @@ +{{ define "hero" }} + {{ partial "hero.html" . }} +{{ end }} +{{ define "main" }} + {{- $sectionDelimiter := "<!-- section break -->" -}} + {{- $rawContentSections := split .RawContent $sectionDelimiter -}} + {{ range $rawContentSections }} + <div class="stripe-dark"> + <div class="mw7 center pv2 lh-copy f4-ns ph1"> + {{ . | markdownify }} + </div> + </div> + {{ end }} + + + <div class="stripe-dark"> + <div class="mw7 center pv2 lh-copy f4-ns ph1"> + {{ range .Pages.GroupBy "Section" "asc" }} + <h2>{{ .Key }} {{ . }}</h2> + {{ range .Pages }} + {{ partial "post.html" . }} + {{ end }} + {{ end }} + </div> + </div> +{{ end }} |