summaryrefslogtreecommitdiff
path: root/_includes/categories.html
diff options
context:
space:
mode:
Diffstat (limited to '_includes/categories.html')
-rw-r--r--_includes/categories.html40
1 files changed, 0 insertions, 40 deletions
diff --git a/_includes/categories.html b/_includes/categories.html
deleted file mode 100644
index 7f1e4cd..0000000
--- a/_includes/categories.html
+++ /dev/null
@@ -1,40 +0,0 @@
-{% assign entries_with_categories = "" | split:"" %}
-{% for entry in site[include.kind] %}
- {% if entry.lang == page.lang %}
- {% if entry.eu_categories %}
- {% assign entries_with_categories = entries_with_categories | push:entry %}
- {% endif %}
- {% endif %}
-{% endfor %}
-{% assign entries_with_categories = entries_with_categories | reverse %}
-
-{% assign categories = "" | split:"" %}
-{% for entry in entries_with_categories %}
- {% assign entry_categories = entry.eu_categories | split:"," %}
- {% for entry_category in entry_categories %}
- {% assign categories = categories | push:entry_category %}
- {% endfor %}
-{% endfor %}
-
-{% assign unique_categories = categories | sort | uniq %}
-{% for category in unique_categories %}
- {% assign feed_link = "feed." | append:include.kind | append:"-by-category." | append:page.lang | append:"." | append:category | append:".atom" | replace:" ", "-" %}
- <h2 id="{{ category | replace:" ", "-" }}">
- <a href="#{{ category | replace:" ", "-" }}">{{ category }}</a>
- <a href="{% link {{ feed_link }} %}">
- <img class="simple-icon" src="/static/atom.svg" alt="{{ site.t.alt.atom[page.lang] }}" />
- </a>
- </h2>
- <ul>
- {% for entry in entries_with_categories %}
- {% assign entry_categories = entry.eu_categories | split:"," %}
- {% for entry_category in entry_categories %}
- {% if category == entry_category %}
- <li>
- <a href="{{ entry.url | relative_url }}">{{ entry.title | escape }}</a> - {% include i18n-date.html date=entry.date %}
- </li>
- {% endif %}
- {% endfor %}
- {% endfor %}
- </ul>
-{% endfor %}