diff --git a/_config.yml b/_config.yml index e5129bbe..b7ecdea5 100644 --- a/_config.yml +++ b/_config.yml @@ -177,6 +177,10 @@ paginate: 5 # amount of posts to show paginate_path: /page:num/ timezone: America/New_York # http://en.wikipedia.org/wiki/List_of_tz_database_time_zones +# Archive Page Filenames (example: /archive-filename/ ~> "archive-filename") +tags_archive_filename : "tag-archive" +categories_archive_filename : "category-archive" + # HTML Compression # http://jch.penibelst.de/ compress_html: diff --git a/_data/ui-text.yml b/_data/ui-text.yml index e813e75a..616c8fe5 100644 --- a/_data/ui-text.yml +++ b/_data/ui-text.yml @@ -3,16 +3,18 @@ # English (default) # ----------------- en: &DEFAULT_EN - pagination_previous: "Previous" - pagination_next: "Next" - toc_label: "Overview" - ext_link_label: "Direct Link" - share_on: "Share on" - date_label: "Last Updated:" - related_label: "You May Also Enjoy" - follow_label: "Follow:" - feed_label: "Feed" - powered_by: "Powered by" + pagination_previous : "Previous" + pagination_next : "Next" + toc_label : "Overview" + ext_link_label : "Direct Link" + share_on_label : "Share on" + date_label : "Last Updated:" + tags_label : "Tags:" + categories_label : "Categories:" + related_label : "You May Also Enjoy" + follow_label : "Follow:" + feed_label : "Feed" + powered_by : "Powered by" en_US: <<: *DEFAULT_EN en_UK: diff --git a/_includes/page__taxonomy.html b/_includes/page__taxonomy.html index 1538d5b9..6243638f 100644 --- a/_includes/page__taxonomy.html +++ b/_includes/page__taxonomy.html @@ -1,15 +1,34 @@ +{% include base_path %} + {% comment %} {% endcomment %} -{% capture page_tags %}{% for tag in page.tags %}{{ tag | downcase }}#{{ tag }}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %} -{% assign tag_hashes = (page_tags | split: ',' | sort:0) %} +{% if site.tags_archive_filename %} + {% capture page_tags %}{% for tag in page.tags %}{{ tag | downcase }}#{{ tag }}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %} + {% assign tag_hashes = (page_tags | split: ',' | sort:0) %} -Filed under: -{% for hash in tag_hashes %} - {% assign keyValue = hash | split: '#' %} - {% capture tag_word %}{{ keyValue[1] | strip_newlines }}{% endcapture %} - {% if forloop.last %} and{% endif %} {% unless forloop.last %}, {% endunless %} -{% endfor %} - \ No newline at end of file +

{{ site.data.ui-text[site.locale].tags_label }} + {% for hash in tag_hashes %} + {% assign keyValue = hash | split: '#' %} + {% capture tag_word %}{{ keyValue[1] | strip_newlines }}{% endcapture %} + {% unless forloop.last %}, {% endunless %} + {% endfor %} + +

+{% endif %} + +{% if site.categories_archive_filename %} + {% capture page_categories %}{% for category in page.categories %}{{ category | downcase }}#{{ category }}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %} + {% assign category_hashes = (page_categories | split: ',' | sort:0) %} + +

{{ site.data.ui-text[site.locale].categories_label }} + {% for hash in category_hashes %} + {% assign keyValue = hash | split: '#' %} + {% capture category_word %}{{ keyValue[1] | strip_newlines }}{% endcapture %} + {% unless forloop.last %}, {% endunless %} + {% endfor %} + +

+{% endif %} \ No newline at end of file diff --git a/_layouts/single.html b/_layouts/single.html index 2f24ae0b..f5a50bca 100644 --- a/_layouts/single.html +++ b/_layouts/single.html @@ -19,12 +19,14 @@ layout: default {% if page.link %}
{{ site.data.ui-text[site.locale].ext_link_label }}
{% endif %} -