Organise partials
This commit is contained in:
parent
a5d4a04c32
commit
fbbe3276e7
8 changed files with 4 additions and 10 deletions
16
source/_partials/posts/latest.html.twig
Normal file
16
source/_partials/posts/latest.html.twig
Normal file
|
@ -0,0 +1,16 @@
|
|||
<div class="latest-posts">
|
||||
<div class="latest-posts__heading">Latest blog posts</div>
|
||||
|
||||
<ul>
|
||||
{% for post in data.posts|slice(0, site.latest_posts) %}
|
||||
<li class="post">
|
||||
<span class="post__title">
|
||||
<a href="{{ post.url }}">
|
||||
{{ post.title }}
|
||||
</a>
|
||||
</span> -
|
||||
<span class="post__date">{{ post.date|date(site.default_date_format) }}</span>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue