From a916cc7023151b1d034673dd93b820a48ec3171f Mon Sep 17 00:00:00 2001 From: mariusmue Date: Tue, 25 Apr 2023 14:52:16 +0100 Subject: [PATCH] add code field to publication extras --- templates/macros/publication.html | 4 ++++ templates/publication-page.html | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/templates/macros/publication.html b/templates/macros/publication.html index ac4e34e..be8e3ce 100644 --- a/templates/macros/publication.html +++ b/templates/macros/publication.html @@ -100,6 +100,10 @@

url {% endif -%} + + {% if page.extra.code %} + code + {% endif -%} {% endif -%} {% if show_frame -%} diff --git a/templates/publication-page.html b/templates/publication-page.html index cf406f1..8ace8b3 100644 --- a/templates/publication-page.html +++ b/templates/publication-page.html @@ -43,6 +43,11 @@

{{publi {% if bibdata and bibdata.url %} url {% endif %} + + {% if page.extra.code %} + code + {% endif %} +