a new start
This commit is contained in:
33
_includes/body/sidebar-sticky.html
Normal file
33
_includes/body/sidebar-sticky.html
Normal file
@@ -0,0 +1,33 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user