Rename _includes to _partials
This commit is contained in:
parent
c6aaf21722
commit
11d37468a8
27 changed files with 0 additions and 0 deletions
15
source/_partials/posts/latest.html.twig
Normal file
15
source/_partials/posts/latest.html.twig
Normal file
|
@ -0,0 +1,15 @@
|
|||
{% if data.posts and page.url != '/blog' %}
|
||||
<div class="widget lh-copy">
|
||||
<h2>Latest Blog Posts</h2>
|
||||
|
||||
<ul class="bullets">
|
||||
{% for post in data.posts|slice(0, site.latest_posts) %}
|
||||
<li>
|
||||
<a href="{{ post.url }}">
|
||||
{{ post.title }}
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endif %}
|
Loading…
Add table
Add a link
Reference in a new issue