From 2667cd02c159022ddaa38705538f60c79a547459 Mon Sep 17 00:00:00 2001 From: Oscar Najera Date: Fri, 27 Dec 2024 22:36:46 +0100 Subject: Display only publications on author page --- layouts/_default/author.html | 23 ++++++++++++----------- 1 file 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 @@ {{ end }} - -
-
- {{ range .Pages.GroupBy "Section" "asc" }} -

{{ .Key }} {{ . }}

- {{ range .Pages }} - {{ partial "post.html" . }} - {{ end }} - {{ end }} -
-
+ {{ with where .Pages "Type" "publication" }} + {{ if gt (len .) 0 }} +
+
+

Publications

+ {{ range . }} + {{ partial "post.html" . }} + {{ end }} +
+
+ {{ end }} + {{ end }} {{ end }} -- cgit v1.2.3