dotfiles

My PC Dotfiles & Website

site/templates/macros/footer.html (1637B)


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