footer.html (1495B)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
{% macro copyright(config) %} <div class="copyright"> <span> © {{ now() | date(format="%Y") }} {{ config.extra.copyright | safe}} </span> <span> Powered by {{ url::external(url="https://getzola.org/", text="Zola", icon=false) }} :: Site {{ url::external(url=config.extra.repo_url, text="Source", icon=false) }} </span> </div> {% endmacro copyright %} {% macro theme(config) %} <div class="theme-container js-only"> <div class="theme_before"></div> <div class="theme-content"> <label for="theme-select">Theme:</label> <select id="theme-select"> {% for theme in config.extra.color_schemes %} {% if config.extra.theme_color %} {% set default_theme = config.extra.theme_color %} {% else %} {% set default_theme = "red" %} {% endif %} {% if default_theme == theme %} <option selected="selected" value="{{ theme }}">{{ theme }}</option> {% else %} <option value="{{ theme }}">{{ theme }}</option> {% endif %} {% endfor %} </select> </div> <div class="theme_after"></div> </div> {% endmacro theme %} {% macro webring(config) %} {% if config.extra.webring %} <div class="webring"> <a href="{{ config.extra.webring_url }}/prev/{{ config.extra.author }}" ><- prev</a > <a href="{{ config.extra.webring_url }}" >{{ config.extra.webring_name }}</a > <a href="{{ config.extra.webring_url }}/next/{{ config.extra.author }}" >next -></a > </div> {% endif %} {% endmacro webring %}