blob: e9c1dd14211b73ef78287a86a283d8e95c9f0d66 (
plain) (
blame)
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
41
42
43
44
45
46
47
48
49
50
51
52
|
{% if config.extra.blog_section_path is defined %}
{% set blog_section_path = config.extra.blog_section_path %}
{% endif %}
<footer>
<div class="left">
<div class="copyright">
{{ config.extra.footer_copyright }}
{% if config.extra.footer_credits %}
<span>|</span>
Built with <a href="https://www.getzola.org" rel="noreferrer" target="_blank">zola</a> and <a href="https://github.com/isunjn/serene" rel="noreferrer" target="_blank">serene</a>
{% endif %}
</div>
</div>
<div class="right">
{% if blog_section_path is defined and section.path is starting_with(blog_section_path) %}
{% if section.generate_feeds %}
{% set_global rss_path = blog_section_path ~ "/" ~ config.feed_filenames.0 %}
{% elif config.generate_feeds %}
{% set_global rss_path = "/" ~ config.feed_filenames.0 %}
{% endif %}
{% if section.generate_feeds or config.generate_feeds %}
<a id="rss-btn" href="{{ get_url(path=rss_path) }}">RSS</a>
{% endif %}
{% endif %}
{% if not config.extra.force_theme %}
{% set moon_icon = load_data(path="icon/moon.svg") %}
{% set sun_icon = load_data(path="icon/sun.svg") %}
<button id="theme-toggle" aria-label="theme switch">
<span class="moon-icon">{{ moon_icon | safe }}</span>
<span class="sun-icon">{{ sun_icon | safe }}</span>
</button>
{% endif %}
</div>
</footer>
{% if blog_section_path is defined and section.path is starting_with(blog_section_path) %}
{% if section.generate_feeds or config.generate_feeds %}
{% set link = get_url(path=rss_path) %}
<dialog id="rss-mask">
<div>
<a href="{{ link }}">{{ link }}</a>
{% set copy_icon = load_data(path="icon/copy.svg") %}
{% set check_icon = load_data(path="icon/check.svg") %}
<button autofocus aria-label="copy" data-link="{{ link }}" data-copy-icon="{{ copy_icon }}" data-check-icon="{{ check_icon }}" >
{{ copy_icon | safe }}
</button>
</div>
</dialog>
{% endif %}
{% endif %}
|