Skip to content

Commit

Permalink
jirelations#49 Add category.html layout
Browse files Browse the repository at this point in the history
  • Loading branch information
LeNPaul committed May 24, 2021
1 parent f440529 commit ff479d7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions _layouts/category.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
layout: default
---

{% for post in site.posts %}
{% if post.categories contains page.category %}
<a href="{{ site.github.url }}{{ post.url }}">
<div class="featured-posts" {% if post.image %}style="background-image:url({{ site.github.url }}/assets/img/{{ post.image }})"{% endif %}>
<h2><span>{{ post.title }}</span></h2>
</div>
</a>
{% endif %}
{% endfor %}

0 comments on commit ff479d7

Please sign in to comment.