51 lines
No EOL
2.1 KiB
HTML
51 lines
No EOL
2.1 KiB
HTML
<profile-img>
|
|
<a href="/picrew/" title="picrew" style="padding: 0;"><img id="randomImage" alt="mana's pfp"></a>
|
|
</profile-img>
|
|
{% 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 %}
|
|
{% endif %}
|
|
<nav-icon>
|
|
<div>
|
|
{% if not config.extra.default_theme %}
|
|
<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>
|
|
{% elif config.extra.default_theme and config.extra.default_theme == "light" %}
|
|
<button class="themeButton light" onclick="setTheme('light')" title="Light mode">
|
|
<i class="ph ph-sun-horizon"></i>
|
|
</button>
|
|
<button class="themeButton dark" onclick="setTheme('dark')" title="Dark mode">
|
|
<i class="ph ph-moon-stars"></i>
|
|
</button>
|
|
{% elif config.extra.default_theme and config.extra.default_theme == "dark" %}
|
|
<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>
|
|
{% 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>
|
|
{% endif %}
|
|
</div>
|
|
<div style="padding-bottom: 7px; padding-left: 0;">
|
|
<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>
|
|
</div>
|
|
</nav-icon> |