From a73426ef271ce0cebdc23bbdbc60975c0f4b5966 Mon Sep 17 00:00:00 2001
From: Lars Bilke <lars.bilke@ufz.de>
Date: Fri, 9 Dec 2022 14:24:05 +0100
Subject: [PATCH] [web] Change bib-shortcode slightly.

Removed paragraph.
---
 .../small-deformations/mechanics-bgr/index.md |  8 ++--
 .../BGRaVerificationExamples/index.md         |  4 +-
 .../thermomechanics-bgr/index.md              |  8 ++--
 web/layouts/shortcodes/bib.html               | 39 +++++++++----------
 4 files changed, 27 insertions(+), 32 deletions(-)

diff --git a/web/content/docs/benchmarks/small-deformations/mechanics-bgr/index.md b/web/content/docs/benchmarks/small-deformations/mechanics-bgr/index.md
index 57b3f8f395d..036245137f1 100644
--- a/web/content/docs/benchmarks/small-deformations/mechanics-bgr/index.md
+++ b/web/content/docs/benchmarks/small-deformations/mechanics-bgr/index.md
@@ -37,8 +37,6 @@ Note that OGS uses plane strain assumptions in two dimensions (2D) as it is comm
 
 ## References
 
-{{< bib "kolditz:2015" >}}
-
-{{< bib "kolditz:2016" >}}
-
-{{< bib "kolditz:2018" >}}
+- {{< bib "kolditz:2015" >}}
+- {{< bib "kolditz:2016" >}}
+- {{< bib "kolditz:2018" >}}
diff --git a/web/content/docs/benchmarks/thermo-mechanics/BGRaVerificationExamples/index.md b/web/content/docs/benchmarks/thermo-mechanics/BGRaVerificationExamples/index.md
index b6bb1401167..8c33c5ad960 100644
--- a/web/content/docs/benchmarks/thermo-mechanics/BGRaVerificationExamples/index.md
+++ b/web/content/docs/benchmarks/thermo-mechanics/BGRaVerificationExamples/index.md
@@ -32,5 +32,5 @@ chapters in the benchmark books.
 
 ## References
 
-{{< bib "kolditz:2015" >}}
-{{< bib "kolditz:2016" >}}
+- {{< bib "kolditz:2015" >}}
+- {{< bib "kolditz:2016" >}}
diff --git a/web/content/docs/benchmarks/thermo-mechanics/thermomechanics-bgr/index.md b/web/content/docs/benchmarks/thermo-mechanics/thermomechanics-bgr/index.md
index 14ce85f9f0c..4ec5e35ddc7 100644
--- a/web/content/docs/benchmarks/thermo-mechanics/thermomechanics-bgr/index.md
+++ b/web/content/docs/benchmarks/thermo-mechanics/thermomechanics-bgr/index.md
@@ -32,8 +32,6 @@ chapters in the benchmark books.
 
 ## References
 
-{{< bib "kolditz:2015" >}}
-
-{{< bib "kolditz:2016" >}}
-
-{{< bib "kolditz:2018" >}}
+- {{< bib "kolditz:2015" >}}
+- {{< bib "kolditz:2016" >}}
+- {{< bib "kolditz:2018" >}}
diff --git a/web/layouts/shortcodes/bib.html b/web/layouts/shortcodes/bib.html
index 31aa9e4af10..5131d7304ed 100644
--- a/web/layouts/shortcodes/bib.html
+++ b/web/layouts/shortcodes/bib.html
@@ -1,22 +1,21 @@
 {{ $full_bib := merge .Site.Data.bib_ogs .Site.Data.bib_other }}
 {{ $bib := index $full_bib.entries (.Get 0) }}
-<p>
-  {{ $len := (len $bib.author) }}
-  {{ range $index, $element := $bib.author }}
-  {{ $element.last }}, {{ $element.first}} {{ if ne (add $index 1) $len }}and{{ end }}
-  {{ end }}
-  ({{$bib.year}}):
-  <span class="italic">{{ $bib.title | safeHTML }}</span>.
-  {{ if isset $bib "journal" }}{{ $bib.journal }},{{ end }}
-  {{ if isset $bib "issue" }}Issue {{ $bib.issue }},{{ end }}
-  {{ if isset $bib "volume" }}vol. {{ $bib.volume }},{{ end }}
-  {{ if isset $bib "pages" }}p. {{ $bib.pages }},{{ end }}
-  {{ if isset $bib "isbn" }}ISBN: {{ $bib.isbn }},{{ end }}
-  {{ if isset $bib "publisher" }}{{ $bib.publisher }},{{ end }}
-  {{ if isset $bib "doi" }}
-  DOI:<a href="https://doi.org/{{ $bib.doi }}" class="mt-4">{{ $bib.doi }}</a>
-  {{ end }}
-  {{ if isset $bib "url" }}
-  <a href="{{ $bib.url }}" class="mt-4">{{ $bib.url }}</a>
-  {{ end }}
-</p>
+
+{{ $len := (len $bib.author) }}
+{{ range $index, $element := $bib.author }}
+{{ $element.last }}, {{ $element.first}} {{ if ne (add $index 1) $len }}and{{ end }}
+{{ end }}
+({{$bib.year}}):
+<span class="italic">{{ $bib.title | safeHTML }}</span>.
+{{ if isset $bib "journal" }}{{ $bib.journal }},{{ end }}
+{{ if isset $bib "issue" }}Issue {{ $bib.issue }},{{ end }}
+{{ if isset $bib "volume" }}vol. {{ $bib.volume }},{{ end }}
+{{ if isset $bib "pages" }}p. {{ $bib.pages }},{{ end }}
+{{ if isset $bib "isbn" }}ISBN: {{ $bib.isbn }},{{ end }}
+{{ if isset $bib "publisher" }}{{ $bib.publisher }},{{ end }}
+{{ if isset $bib "doi" }}
+DOI:<a href="https://doi.org/{{ $bib.doi }}" class="mt-4">{{ $bib.doi }}</a>
+{{ end }}
+{{ if isset $bib "url" }}
+<a href="{{ $bib.url }}" class="mt-4">{{ $bib.url }}</a>
+{{ end }}
-- 
GitLab