Update file extensions
This commit is contained in:
parent
364e2d887f
commit
91e638397d
35 changed files with 840 additions and 0 deletions
18
source/_partials/posts/latest.html.twig
Normal file
18
source/_partials/posts/latest.html.twig
Normal file
|
@ -0,0 +1,18 @@
|
|||
{% if data.posts and page.url != '/blog' %}
|
||||
<div class="latest-posts panel panel-default">
|
||||
<div class="latest-posts__heading panel-heading">Latest blog posts</div>
|
||||
|
||||
<ul class="list-group">
|
||||
{% for post in data.posts|slice(0, site.latest_posts) %}
|
||||
<li class="post list-group-item">
|
||||
<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>
|
||||
{% endif %}
|
Loading…
Add table
Add a link
Reference in a new issue