From: Sarah Conway Date: Thu, 18 Oct 2018 14:01:28 +0000 (-0700) Subject: add link macros in header X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=8e5ed380ec85b7e40ea11d066249dc52f7421940;p=pgdutmpl.git add link macros in header --- diff --git a/template/base.html b/template/base.html index 10cb479..3a4636a 100644 --- a/template/base.html +++ b/template/base.html @@ -1,3 +1,5 @@ +{%macro media(url)%}{{mediabase|default("/")}}static/{%if githash%}{{githash}}/{%endif%}{{url}}{%endmacro-%} +{%macro link(url)%}{{linkbase|default("/")}}{{url}}{%endmacro-%}