Skip to content

Commit

Permalink
fix: make page.list_title optional (jekyll#303)
Browse files Browse the repository at this point in the history
Merge pull request 303
  • Loading branch information
jekyllbot authored Jan 16, 2020
1 parent b82c086 commit 6713629
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion _layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ <h1 class="page-heading">{{ page.title }}</h1>
{{ content }}

{%- if site.posts.size > 0 -%}
<h2 class="post-list-heading">{{ page.list_title | default: "Posts" }}</h2>
{%- if page.list_title -%}
<h2 class="post-list-heading">{{ page.list_title }}</h2>
{%- endif -%}
<ul class="post-list">
{%- for post in site.posts -%}
<li>
Expand Down

0 comments on commit 6713629

Please sign in to comment.