aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/_default/author.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/author.html')
-rw-r--r--layouts/_default/author.html27
1 files changed, 27 insertions, 0 deletions
diff --git a/layouts/_default/author.html b/layouts/_default/author.html
new file mode 100644
index 0000000..b2277dd
--- /dev/null
+++ b/layouts/_default/author.html
@@ -0,0 +1,27 @@
+{{ define "hero" }}
+ {{ partial "hero.html" . }}
+{{ end }}
+{{ define "main" }}
+ {{- $sectionDelimiter := "<!-- section break -->" -}}
+ {{- $rawContentSections := split .RawContent $sectionDelimiter -}}
+ {{ range $rawContentSections }}
+ <div class="even:bg-gray-200">
+ <div class="max-w-screen-md mx-auto py-2 px-1 main-content">
+ {{ . | markdownify }}
+ </div>
+ </div>
+ {{ end }}
+
+ {{ with where .Pages "Type" "publication" }}
+ {{ if gt (len .) 0 }}
+ <div class="even:bg-gray-200">
+ <div class="max-w-screen-md mx-auto py-2 px-1">
+ <h2 class="baskerville">Publications</h2>
+ {{ range . }}
+ {{ partial "post.html" . }}
+ {{ end }}
+ </div>
+ </div>
+ {{ end }}
+ {{ end }}
+{{ end }}