Add icons to page meta labels (tags, categories, and date)

This commit is contained in:
Michael Rose 2016-04-03 21:35:53 -04:00
parent 7c1bddf704
commit 803096d9fa
6 changed files with 7 additions and 7 deletions

View file

@ -15,7 +15,7 @@ en: &DEFAULT_EN
meta_label : meta_label :
tags_label : "Tags:" tags_label : "Tags:"
categories_label : "Categories:" categories_label : "Categories:"
date_label : date_label : "Updated:"
comments_label : "Leave a Comment" comments_label : "Leave a Comment"
more_label : "Learn More" more_label : "Learn More"
related_label : "You May Also Enjoy" related_label : "You May Also Enjoy"

View file

@ -16,7 +16,7 @@
{% assign category_hashes = (page_categories | split: ',' | sort:0) %} {% assign category_hashes = (page_categories | split: ',' | sort:0) %}
<p class="page__taxonomy"> <p class="page__taxonomy">
{% if site.data.ui-text[site.locale].categories_label %}<strong>{{ site.data.ui-text[site.locale].categories_label }} </strong>{% endif %} <strong><i class="fa fa-fw fa-folder-open" aria-hidden="true"></i> {{ site.data.ui-text[site.locale].categories_label }} </strong>
<span itemprop="keywords"> <span itemprop="keywords">
{% for hash in category_hashes %} {% for hash in category_hashes %}
{% assign keyValue = hash | split: '#' %} {% assign keyValue = hash | split: '#' %}

View file

@ -16,7 +16,7 @@
{% assign tag_hashes = (page_tags | split: ',' | sort:0) %} {% assign tag_hashes = (page_tags | split: ',' | sort:0) %}
<p class="page__taxonomy"> <p class="page__taxonomy">
{% if site.data.ui-text[site.locale].tags_label %}<strong>{{ site.data.ui-text[site.locale].tags_label }} </strong>{% endif %} <strong><i class="fa fa-fw fa-tags" aria-hidden="true"></i> {{ site.data.ui-text[site.locale].tags_label }} </strong>
<span itemprop="keywords"> <span itemprop="keywords">
{% for hash in tag_hashes %} {% for hash in tag_hashes %}
{% assign keyValue = hash | split: '#' %} {% assign keyValue = hash | split: '#' %}

View file

@ -40,9 +40,9 @@ layout: default
{% endif %} {% endif %}
{% include page__taxonomy.html %} {% include page__taxonomy.html %}
{% if page.modified %} {% if page.modified %}
<p class="page__date"><strong>{{ site.data.ui-text[site.locale].date_label }}</strong> <time datetime="{{ page.modified | date: "%Y-%m-%d" }}">{{ page.modified | date: "%B %d, %Y" }}</time></p> <p class="page__date"><strong><i class="fa fa-fw fa-calendar" aria-hidden="true"></i> {{ site.data.ui-text[site.locale].date_label }}</strong> <time datetime="{{ page.modified | date: "%Y-%m-%d" }}">{{ page.modified | date: "%B %d, %Y" }}</time></p>
{% elsif page.date %} {% elsif page.date %}
<p class="page__date"><strong>{{ site.data.ui-text[site.locale].date_label }}</strong> <time datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | date: "%B %d, %Y" }}</time></p> <p class="page__date"><strong><i class="fa fa-fw fa-calendar" aria-hidden="true"></i> {{ site.data.ui-text[site.locale].date_label }}</strong> <time datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | date: "%B %d, %Y" }}</time></p>
{% endif %} {% endif %}
</footer> </footer>

View file

@ -210,7 +210,7 @@
font-size: $type-size-6; font-size: $type-size-6;
p { p {
margin-bottom: 0.5em; margin: 0;
} }
} }

File diff suppressed because one or more lines are too long