From 8def3fe20846db5b1af76b78a92b5a19ae397645 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Thu, 19 Dec 2024 19:23:10 -0500 Subject: [PATCH] rough attempt at providing per publication page at least it shows posibility to link to each author page. Ideally a theme or some precooked elements would be used to provide us all nice rendering elements --- content/authors/_index.md | 5 +++++ hugo.yaml | 1 + layouts/publications/single.html | 15 +++++++++++++++ 3 files changed, 21 insertions(+) create mode 100644 content/authors/_index.md create mode 100644 layouts/publications/single.html diff --git a/content/authors/_index.md b/content/authors/_index.md new file mode 100644 index 0000000..5ff7656 --- /dev/null +++ b/content/authors/_index.md @@ -0,0 +1,5 @@ +--- +title: Authors of ReproNim and related publications +ordersectionsby: title +--- + diff --git a/hugo.yaml b/hugo.yaml index 4a9305f..bee198f 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -69,4 +69,5 @@ deployment: taxonomies: author: authors + publication: publications diff --git a/layouts/publications/single.html b/layouts/publications/single.html new file mode 100644 index 0000000..f34df56 --- /dev/null +++ b/layouts/publications/single.html @@ -0,0 +1,15 @@ +{{ define "main" }} +
+

{{ .Title }}

+

By: + {{ range $index, $author := .Params.authors }} + {{ if $index }}, {{ end }} + {{ $author }} + {{ end }} +

+

{{ .Date.Format "January 2, 2006" }}

+
+ {{ .Content }} +
+
+{{ end }}