Skip to content

Commit

Permalink
Assign static value to variable outside forloop (jekyll#437)
Browse files Browse the repository at this point in the history
Merge pull request 437
  • Loading branch information
ashmaroli authored and jekyllbot committed Jan 17, 2020
1 parent ae1588f commit b354035
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ <h1 class="page-heading">{{ page.title }}</h1>
<h2 class="post-list-heading">{{ page.list_title }}</h2>
{%- endif -%}
<ul class="post-list">
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
{%- for post in site.posts -%}
<li>
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
<span class="post-meta">{{ post.date | date: date_format }}</span>
<h3>
<a class="post-link" href="{{ post.url | relative_url }}">
Expand Down

0 comments on commit b354035

Please sign in to comment.