-
-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #851 from Queen-codes/recent-posts
refactored recent post to align with vocabulary markup
- Loading branch information
Showing
3 changed files
with
32 additions
and
24 deletions.
There are no files selected for viewing
20 changes: 6 additions & 14 deletions
20
themes/vocabulary_theme/templates/blocks/recent-posts.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,14 @@ | ||
{% from "macros/posts.html" import render_post_summary %} | ||
|
||
<section class="recent-posts"> | ||
<div class="container"> | ||
<div class="level"> | ||
<h2 class="is-paddingless level-left"> | ||
{{ this.title }} | ||
</h2> | ||
<span class="level-right"> | ||
<a class="posts-link" href="/blog/entries">See all posts <i class="icon angle-right"></i></a> | ||
</span> | ||
</div> | ||
<div class="columns"> | ||
<article class="posts"> | ||
<h2> {{ this.title }} </h2> | ||
<ul> | ||
{% for post in site.query('/blog/entries') %} | ||
{% set post_loop = loop %} | ||
{% if post_loop.index <= 3 %} | ||
{{ render_post_summary(post) }} | ||
{% endif %} | ||
{% endfor %} | ||
</div> | ||
</div> | ||
</section> | ||
</ul> | ||
|
||
<a class="more" href="/blog/entries">See all posts</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters