Skip to content

Commit

Permalink
Added related posts section (alshedivat#1168)
Browse files Browse the repository at this point in the history
  • Loading branch information
Demi-wlw authored Mar 11, 2023
1 parent 49e9fbd commit 1ebb13e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ <h1 class="post-title">{{ page.title }}</h1>
<article class="post-content">
{{ content }}
</article>

{%- if site.related_blog_posts.enabled -%}
{%- if page.related_posts == null or page.related_posts -%}
{% include related_posts.html %}
{%- endif %}
{%- endif %}

{%- if site.disqus_shortname and page.comments -%}
<div id="disqus_thread" style="max-width: {{ site.max_width }}; margin: 0 auto"></div>
Expand Down

0 comments on commit 1ebb13e

Please sign in to comment.