diff options
-rw-r--r-- | _includes/categories.liquid | 12 | ||||
-rw-r--r-- | _includes/tags.liquid | 16 |
2 files changed, 28 insertions, 0 deletions
diff --git a/_includes/categories.liquid b/_includes/categories.liquid new file mode 100644 index 0000000..5c01772 --- /dev/null +++ b/_includes/categories.liquid @@ -0,0 +1,12 @@ +{% if page.categories %} + <div class="tags has-addons"> + <span class="tag is-rounded is-success"> + Category + </span> + {% for category in page.categories %} + <span class="tag is-rounded"> + {{ category | downcase }} + </span> + {% endfor %} + </div> +{% endif %} diff --git a/_includes/tags.liquid b/_includes/tags.liquid new file mode 100644 index 0000000..23ea566 --- /dev/null +++ b/_includes/tags.liquid @@ -0,0 +1,16 @@ +{% if page.tags %} + <div class="field is-grouped is-grouped-multiline"> + {% for tag in page.tags %} + <div class="control"> + <div class="tags has-addons"> + <span class="tag is-rounded is-success"> + # + </span> + <span class="tag is-rounded"> + {{ tag | downcase }} + </span> + </div> + </div> + {% endfor %} + </div> +{% endif %} |