Files
v1.pivoine.art/_includes/body/sidebar-sticky.html

33 lines
1.3 KiB
HTML
Raw Permalink Normal View History

2025-10-25 12:39:30 +02:00
<div class="sidebar-sticky">
<div class="sidebar-about">
{% if site.logo %}
<a class="no-hover" href="{{ '/' | relative_url }}" tabindex="-1">
<img src="{% include_cached smart-url url=site.logo %}" class="logo" alt="{{ site.short_title | default:site.title }}" width="120" height="120" loading="lazy" />
</a>
{% endif %}
<a class="sidebar-title" href="{{ '/' | relative_url }}"><h2 class="h1">{{ site.short_title | default:site.title }}</h2></a>
{% assign text = site.tagline | default:site.description %}
{% if text %}
<p class="{% if text.size > 100 %}fine{% endif %}">
{{ text | markdownify | replace:'<p>','' | replace:'</p>','' }}
</p>
{% endif %}
</div>
<nav class="sidebar-nav heading" role="navigation">
{% include body/nav.html %}
</nav>
{% assign author = site.data.authors.first[1] | default:site.author %}
<div class="sidebar-social">
{% include components/social.html author=author %}
</div>
{% if site.pivoine.sound %}
{% assign sounds = site.data.sounds | where: 'default', true %}
<div class="sound-player" data-featured="{{ sounds.first | jsonify | escape }}">
<canvas class="hidden"></canvas>
<a>[ SOUND ON ]</a>
<audio hidden controls="false"></audio>
</div>
{% endif %}
</div>