diff options
Diffstat (limited to 'layouts/_default')
-rw-r--r-- | layouts/_default/author.html | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/layouts/_default/author.html b/layouts/_default/author.html index 1179500..e47925a 100644 --- a/layouts/_default/author.html +++ b/layouts/_default/author.html @@ -12,15 +12,16 @@ </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> + {{ with where .Pages "Type" "publication" }} + {{ if gt (len .) 0 }} + <div class="stripe-dark"> + <div class="mw7 center pv2 lh-copy f4-ns ph1"> + <h2>Publications</h2> + {{ range . }} + {{ partial "post.html" . }} + {{ end }} + </div> + </div> + {{ end }} + {{ end }} {{ end }} |