2016-04-27 16:15:42 +02:00
|
|
|
{% if page.author_profile or layout.author_profile or page.sidebar %}
|
2016-03-23 17:56:23 +01:00
|
|
|
<div class="sidebar sticky">
|
2016-04-27 16:15:42 +02:00
|
|
|
{% if page.author_profile or layout.author_profile %}{% include author-profile.html %}{% endif %}
|
2016-03-23 17:56:23 +01:00
|
|
|
{% if page.sidebar %}
|
|
|
|
{% for s in page.sidebar %}
|
|
|
|
{% if s.image %}
|
|
|
|
<img src=
|
2016-06-03 17:59:19 +02:00
|
|
|
{% if s.image contains "://" %}
|
2016-03-23 17:56:23 +01:00
|
|
|
"{{ s.image }}"
|
|
|
|
{% else %}
|
2018-03-20 16:35:36 +01:00
|
|
|
"{{ s.image | relative_url }}"
|
2016-03-23 17:56:23 +01:00
|
|
|
{% endif %}
|
|
|
|
alt="{% if s.image_alt %}{{ s.image_alt }}{% endif %}">
|
|
|
|
{% endif %}
|
|
|
|
{% if s.title %}<h3>{{ s.title }}</h3>{% endif %}
|
|
|
|
{% if s.text %}{{ s.text | markdownify }}{% endif %}
|
2018-12-04 20:17:54 +01:00
|
|
|
{% if s.nav %}{% include nav_list nav=s.nav %}{% endif %}
|
2016-03-23 17:56:23 +01:00
|
|
|
{% endfor %}
|
2016-03-25 19:12:03 +01:00
|
|
|
{% if page.sidebar.nav %}
|
2016-04-18 22:22:53 +02:00
|
|
|
{% include nav_list nav=page.sidebar.nav %}
|
2016-03-25 19:12:03 +01:00
|
|
|
{% endif %}
|
2016-03-23 17:56:23 +01:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|