From 7ce5c39bd76908c422d33a5978846ba82653a094 Mon Sep 17 00:00:00 2001 From: Josh Habdas Date: Tue, 28 Feb 2017 16:23:39 +0800 Subject: [PATCH] Don't output Archives unless posts collection Meta information was intended to be used only in posts. This change makes it a useful addition to any site collection. It works by only outputting the _Archives_ link when the collection being operated on is the `posts` collection, which is a "hardcoded collection" [according to Jekyll docs](https://jekyllrb.com/docs/collections/) (and my own trail and error with Jekyll 3.3). --- _includes/_meta_information.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/_includes/_meta_information.html b/_includes/_meta_information.html index e9b6253e7f9..57b078260e8 100644 --- a/_includes/_meta_information.html +++ b/_includes/_meta_information.html @@ -21,11 +21,13 @@ {% if page.previous.url %}
{% endif %} + {% if page.collection == "posts" %}
{{ site.data.language.archive }}
+ {% endif %} {% if page.next.url %}
{% else %}
{% endif %} - \ No newline at end of file +