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 %}
+