website/_includes/pinpost.html

18 lines
559 B
HTML
Raw Normal View History

2018-08-17 17:18:40 +00:00
<ul class="pinned-posts">
{%- for posts in site.posts -%}
{%- for post in site.pinpost -%}
{%- if posts.title == post -%}
2018-08-17 17:18:40 +00:00
<li style="margin-bottom: 1em">
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
<h3 style="margin:0">
<a class="post-link" href="{{ posts.url | relative_url }}">
{{ posts.title | escape }}
</a>
</h3>
{%- include post_meta.html page=posts include_link=true -%}
2018-08-17 17:18:40 +00:00
</li>
{%- endif -%}
{%- endfor -%}
{%- endfor -%}
2018-08-17 17:18:40 +00:00
</ul>