diff --git a/web/data/authors.toml b/web/data/authors.toml index 2a9b1994fc814e3f27e3ed18769c4c14276b88eb..2d7f4a1d3f44871a8adc5bff1024922aafe6d571 100644 --- a/web/data/authors.toml +++ b/web/data/authors.toml @@ -1,8 +1,11 @@ -[bilke] -name = "Lars Bilke" +[Lars-Bilke] email = "lars.bilke@ufz.de" web = "https://github.com/bilke" -[sachse] +[Agnes-Sachse] email = "agnes.sachse@ufz.de" web = "" + +[Thomas-Kalbacher] +email = "thomas.kalbacher@ufz.de" +web = "" diff --git a/web/layouts/taxonomy/news.html b/web/layouts/taxonomy/news.html index 927712296ed56e2f9ec83089eb27c716c8ea0451..4d264960ec5ab7663d300fe21989705b5110b723 100644 --- a/web/layouts/taxonomy/news.html +++ b/web/layouts/taxonomy/news.html @@ -16,15 +16,16 @@ <div class="col-xs-12"> <h1>{{ $entry.fields.title }}</h1> - {{ $authorLink := index $entry.fields.authors 0 }} - {{ range where $.Site.Data.news.includes.Entry "sys.id" $authorLink.sys.id }} - {{ $author := . }} - <h4>By {{ $author.fields.name }}</h4> - {{ end }} - {{ $authorId := "bilke" }} - {{ $author := index $.Site.Data.authors $authorId }} - <p>By {{ $author.name }}</p> + {{ if ( isset $entry.fields "author" ) }} + {{ $authorName := $entry.fields.author }} + {{/* + {{ $authorId := replace $authorName " " "-" }} + {{ $author := index $.Site.Data.authors $authorId }} + {{ $author.email }} + */}} + <p>By {{ $entry.fields.author }}</p> + {{ end }} {{ $entry.fields.body | markdownify}} </div>