webbed-site/templates/sidebar.html

51 lines
2.1 KiB
HTML
Raw Normal View History

2024-09-13 20:20:08 -05:00
<profile-img>
2024-09-13 23:41:43 -05:00
<a href="/picrew/" title="picrew" style="padding: 0;"><img id="randomImage" alt="mana's pfp"></a>
2024-09-13 20:20:08 -05:00
</profile-img>
2024-07-07 08:27:18 -05:00
{% set current_lang = config.default_language %}
{% if page %}
{% set current_lang = page.lang %}
{% elif section %}
{% set current_lang = section.lang %}
{% endif %}
{% if config.extra.header_nav %}
{% for nav_item in config.extra.header_nav %}
<a href="{{ nav_item.url }}" class="{% if nav_item.url == current_url %}active{% endif %}">
{% set language_key = 'name_' ~ current_lang %}
{{ nav_item[language_key] }}
</a>
{% endfor %}
2024-09-13 20:20:08 -05:00
{% endif %}
<nav-icon>
<div>
{% if not config.extra.default_theme %}
2024-07-07 08:27:18 -05:00
<button class="themeButton light" onclick="setTheme('light')" title="Light mode">
<i class="ph ph-sun-dim"></i>
</button>
<button class="themeButton dark" onclick="setTheme('dark')" title="Dark mode">
<i class="ph ph-moon-stars"></i>
</button>
2024-09-13 20:20:08 -05:00
{% elif config.extra.default_theme and config.extra.default_theme == "light" %}
2024-07-07 08:27:18 -05:00
<button class="themeButton light" onclick="setTheme('light')" title="Light mode">
2024-09-13 20:20:08 -05:00
<i class="ph ph-sun-horizon"></i>
2024-07-07 08:27:18 -05:00
</button>
<button class="themeButton dark" onclick="setTheme('dark')" title="Dark mode">
<i class="ph ph-moon-stars"></i>
</button>
2024-09-13 20:20:08 -05:00
{% elif config.extra.default_theme and config.extra.default_theme == "dark" %}
2024-07-07 08:27:18 -05:00
<button class="themeButton dark" onclick="setTheme('dark')" title="Dark mode">
<i class="ph ph-sun-dim"></i>
</button>
<button class="themeButton light" onclick="setTheme('light')" title="Light mode">
<i class="ph ph-moon-stars"></i>
</button>
2024-09-13 20:20:08 -05:00
{% endif %}
</div>
<div>
{% if config.generate_feed %}
<a target="_blank" rel="noopener noreferrer" href="{{ get_url(path="atom.xml", trailing_slash=false) }}" title="Subscribe via RSS for updates."><i class="ph ph-rss"></i></a>
2024-07-07 08:27:18 -05:00
{% endif %}
</div>
2024-09-13 20:20:08 -05:00
<div style="padding-bottom: 7px; padding-left: 0;">
2024-09-13 23:41:43 -05:00
<script src="//counter1.fc2.com/counter.php?id=39521789&main=1"></script><noscript><img src="//counter1.fc2.com/counter_img.php?id=39521789&main=1" alt="fc2 counter"></noscript>
2024-09-13 20:20:08 -05:00
</div>
</nav-icon>