Skip to content

Commit 5a3ca7b

Browse files
committed
Adjust layout order and show teasers
1 parent e00143b commit 5a3ca7b

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

_includes/archive-single.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212

1313
<div class="{{ include.type | default: 'list' }}__item">
1414
<article class="archive__item card" itemscope itemtype="https://schema.org/CreativeWork">
15-
{% if include.type == "grid" and teaser %}
16-
<div class="archive__item-teaser">
17-
<a href="{{ post.url | relative_url }}"><img src="{{ teaser | relative_url }}" alt="{{ post.title }}"></a>
18-
</div>
19-
{% endif %}
15+
{% if teaser %}
16+
<div class="archive__item-teaser">
17+
<a href="{{ post.url | relative_url }}"><img src="{{ teaser | relative_url }}" alt="{{ post.title }}"></a>
18+
</div>
19+
{% endif %}
2020
<h2 class="archive__item-title no_toc" itemprop="headline">
2121
{% if post.link %}
2222
<a href="{{ post.link }}">{{ title }}</a> <a href="{{ post.url | relative_url }}" rel="permalink"><i class="fas fa-link" aria-hidden="true" title="permalink"></i><span class="sr-only">Permalink</span></a>

_layouts/single.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,6 @@ <h4 class="page__meta-title">{{ site.data.ui-text[site.locale].meta_label }}</h4
7979
</div>
8080
</article>
8181

82-
{% if jekyll.environment == 'production' and site.comments.provider and page.comments %}
83-
{% include comments.html %}
84-
{% endif %}
8582
{% comment %}<!-- only show related on a post page when `related: true` -->{% endcomment %}
8683
{% if page.id and page.related and site.related_posts.size > 0 %}
8784
<div class="page__related">
@@ -108,4 +105,7 @@ <h2 class="page__related-title">{{ site.data.ui-text[site.locale].related_label
108105
</div>
109106
</div>
110107
{% endif %}
108+
{% if jekyll.environment == 'production' and site.comments.provider and page.comments %}
109+
{% include comments.html %}
110+
{% endif %}
111111
</div>

0 commit comments

Comments
 (0)