Skip to content

Commit 6f25a05

Browse files
authored
Update sidebar.html
1 parent 27bc893 commit 6f25a05

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

_includes/sidebar.html

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,16 @@
11
{% if page.author_profile or layout.author_profile or page.sidebar %}
22
<div class="sidebar sticky">
3-
{% if page.author_profile or layout.author_profile %}
4-
{% include author-profile.html %}
5-
{% endif %}
6-
3+
{% if page.author_profile or layout.author_profile %}{% include author-profile.html %}{% endif %}
74
{% if page.sidebar %}
85
{% for s in page.sidebar %}
96
{% if s.image %}
107
<img src="{{ s.image | relative_url }}"
11-
{% if s.image_alt %}alt="{{ s.image_alt }}"{% endif %}>
8+
alt="{% if s.image_alt %}{{ s.image_alt }}{% endif %}">
129
{% endif %}
1310
{% if s.title %}<h3>{{ s.title }}</h3>{% endif %}
1411
{% if s.text %}{{ s.text | markdownify }}{% endif %}
1512
{% if s.nav %}{% include nav_list nav=s.nav %}{% endif %}
1613
{% endfor %}
17-
1814
{% if page.sidebar.nav %}
1915
{% include nav_list nav=page.sidebar.nav %}
2016
{% endif %}

0 commit comments

Comments
 (0)