From e97fd6677cd4f0aeb0fbfc8002bb2ea6aa773609 Mon Sep 17 00:00:00 2001 From: Stephen Frost Date: Wed, 23 May 2018 08:21:04 -0400 Subject: [PATCH] Use macro for pgusbase --- templates/base.html | 5 +++-- templates/context.json | 1 + templates/index_base.html | 5 +++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/templates/base.html b/templates/base.html index 8aba153..b06db67 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,5 +1,6 @@ {%macro media(url)%}{{mediabase|default("/")}}static/{%if githash%}{{githash}}/{%endif%}{{url}}{%endmacro-%} {%macro link(url)%}{{linkbase|default("/")}}{{url}}{%endmacro-%} +{%macro pguslink(url)%}{{pgusbase|default("/")}}{{url}}{%endmacro-%} {%macro menulink(subpage,title,magic)%}{{title}}{%endmacro-%} @@ -100,8 +101,8 @@
  • Home
  • {{menulink("about", "About")}} - - + + {{menulink("callforpapers", "Call for Papers")}} {{menulink("tickets", "Registration")}} {{menulink("venue", "Venue")}} diff --git a/templates/context.json b/templates/context.json index 187ca51..8b6380d 100644 --- a/templates/context.json +++ b/templates/context.json @@ -1,6 +1,7 @@ { "linkbase": "https://2018.postgresopen.org/", "mediabase": "https://2018.postgresopen.org/", + "pgusbase": "https://postgresql.us/", "conference": "PostgresOpen 2018", diff --git a/templates/index_base.html b/templates/index_base.html index e5bbeba..b769264 100644 --- a/templates/index_base.html +++ b/templates/index_base.html @@ -1,5 +1,6 @@ {%macro media(url)%}{{mediabase|default("/")}}static/{%if githash%}{{githash}}/{%endif%}{{url}}{%endmacro-%} {%macro link(url)%}{{linkbase|default("/")}}{{url}}{%endmacro-%} +{%macro pguslink(url)%}{{pgusbase|default("/")}}{{url}}{%endmacro-%} {%macro menulink(subpage,title,magic)%}{{title}}{%endmacro-%} @@ -98,8 +99,8 @@
  • Home
  • {{menulink("about", "About")}} - - + + {{menulink("callforpapers", "Call for Papers")}} {{menulink("tickets", "Registration")}} {{menulink("venue", "Venue")}} -- 2.39.5