Skip to content

Commit

Permalink
rough attempt at providing per publication page
Browse files Browse the repository at this point in the history
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
  • Loading branch information
yarikoptic committed Dec 20, 2024
1 parent 45985ea commit 8def3fe
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
5 changes: 5 additions & 0 deletions content/authors/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: Authors of ReproNim and related publications
ordersectionsby: title
---

1 change: 1 addition & 0 deletions hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,5 @@ deployment:

taxonomies:
author: authors
publication: publications

15 changes: 15 additions & 0 deletions layouts/publications/single.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{{ define "main" }}
<article>
<h1>{{ .Title }}</h1>
<p>By:
{{ range $index, $author := .Params.authors }}
{{ if $index }}, {{ end }}
<a href="{{ "/authors/" | relURL }}{{ $author | urlize }}">{{ $author }}</a>
{{ end }}
</p>
<p>{{ .Date.Format "January 2, 2006" }}</p>
<div>
{{ .Content }}
</div>
</article>
{{ end }}

0 comments on commit 8def3fe

Please sign in to comment.