diff --git a/templates/base.jinja b/templates/base.jinja index bdf6e3b..6e4d4a9 100644 --- a/templates/base.jinja +++ b/templates/base.jinja @@ -1,6 +1,11 @@ +{# Easy nav-bar entries. When a page sets the active_page variable, the current entry will be underlined #} +{% macro nav_selector(page='', text='') %} + {% if active_page == page %}{% endif %} {{ text }} {% if active_page == page %}{% endif %} +{% endmacro %} + @@ -15,25 +20,27 @@ - {% block body %}{% endblock body %} - \ No newline at end of file diff --git a/templates/index.jinja b/templates/raceguessresults.jinja similarity index 97% rename from templates/index.jinja rename to templates/raceguessresults.jinja index 69a911b..5d8133a 100644 --- a/templates/index.jinja +++ b/templates/raceguessresults.jinja @@ -1,4 +1,7 @@ {% extends 'base.jinja' %} + +{% set active_page = "raceguessresults" %} + {% block title %}Formula 10{% endblock title %} {% block body %}