mirror of
https://github.com/mgrove36/bbc-young-reporter.git
synced 2026-11-01 13:33:53 +00:00
Add categories to articles again
This commit is contained in:
1 parent
e98316f947
commit
9fb6ea5d41
2 files changed
+3
-2
No files matched your search
@@ -12,10 +12,10 @@
|
||||
<i class="material-icons mdc-list-item__graphic" aria-hidden="true">home</i>
|
||||
<span class="mdc-list-item__text">Home Page</span>
|
||||
</a>
|
||||
{% if site.posts %}
|
||||
{% if site.categories.articles %}
|
||||
<div class="mdc-list-group">
|
||||
<h3 class="mdc-list-group__subheader">Articles</h3>
|
||||
{% for article in site.posts %}
|
||||
{% for article in site.categories.articles %}
|
||||
{% assign currentdate = article.date | date: "%Y" %}
|
||||
{% if currentdate != date %}
|
||||
<h3 class="mdc-list-group__subheader">{{ currentdate }}</h3>
|
||||
|
||||
Reference in new issue
Block a user