cristo.re/_layouts/home.html
2022-09-12 12:48:34 +02:00

28 行
536 B
HTML

---
layout: default
---
<div class="home">
{{ content }}
{% assign posts = site.posts %}
{%- if posts.size > 0 -%}
{%- if page.list_title -%}
<h2 class="post-list-heading">{{ page.list_title }}</h2>
{%- endif -%}
<div class="box home-box">
<div class="post-list">
{%- for post in posts -%}
<a class="post-link" href="{{ post.url | relative_url }}">
<h3>{{ post.title | escape }}</h3>
</a>
{%- endfor -%}
</div>
</div>
{%- endif -%}
</div>