diff --git a/sass/style.scss b/sass/style.scss index 07fdf59..578b1d7 100644 --- a/sass/style.scss +++ b/sass/style.scss @@ -80,6 +80,16 @@ main { border-top: 1px solid #eee; margin: 2em 0; padding: 1em 0; + + ul { + list-style-type: none; + margin: 0; + padding: 0; + display: flex; + font-size: .85em; + + li { margin-right: 1em } + } } img { max-width: 100%; diff --git a/templates/index.html b/templates/index.html index db47b81..bbcfc11 100644 --- a/templates/index.html +++ b/templates/index.html @@ -16,7 +16,8 @@
  • {{ item.title }}
  • {% endfor %} - {{ macros::list_taxonomy(title="Categories", kind="categories") }} + Categories + {{ macros::list_taxonomy(kind="categories") }}
    {% block content %} diff --git a/templates/macros.html b/templates/macros.html index d4adf9f..60ab181 100644 --- a/templates/macros.html +++ b/templates/macros.html @@ -23,16 +23,20 @@ {%- if page.extra.author -%} , {{ page.extra.author }} {% endif %} + {% if page.taxonomies.categories %} +
    + {{ self::list_taxonomy(kind="categories", prepend="#") }} +
    + {% endif %} {% endif %} {% endmacro %} -{% macro list_taxonomy(title, kind) %} - {{ title }} +{% macro list_taxonomy(kind, prepend="") %} {% endmacro list_categories %}