diff --git a/static/src/scss/_content.scss b/static/src/scss/_content.scss index 7ab8049..9df4958 100644 --- a/static/src/scss/_content.scss +++ b/static/src/scss/_content.scss @@ -1,3 +1,13 @@ section.content { font-size: 1.25rem; } + +.content-details { + span + span { + margin-left: 0.5rem; + } + + i { + margin-right: 5px; + } +} diff --git a/static/src/scss/_hero.scss b/static/src/scss/_hero.scss index 6994cb2..4c21191 100644 --- a/static/src/scss/_hero.scss +++ b/static/src/scss/_hero.scss @@ -55,14 +55,4 @@ section.hero { nav.breadcrumb { margin-bottom: 0.5rem !important; } - - .content-details { - span + span { - margin-left: 0.5rem; - } - - i { - margin-right: 5px; - } - } } diff --git a/website/common/templates/common/content-details.html b/website/common/templates/common/content-details.html new file mode 100644 index 0000000..b9234be --- /dev/null +++ b/website/common/templates/common/content-details.html @@ -0,0 +1,7 @@ +{% if page.date %} + {{ page.date|date:"Y-m-d" }} +{% endif %} +4 minutes +{% if page.tags.all %} + {% for tag in page.tags.all %}#{{ tag.slug }}{% endfor %} +{% endif %} diff --git a/website/common/templates/common/hero.html b/website/common/templates/common/hero.html index a69bbba..c7308e0 100644 --- a/website/common/templates/common/hero.html +++ b/website/common/templates/common/hero.html @@ -15,13 +15,7 @@

{{ page.subtitle }}

{% endif %}

- {% if page.date %} - {{ page.date|date:"Y-m-d" }} - {% endif %} - 4 minutes - {% if page.tags.all %} - {% for tag in page.tags.all %}#{{ tag.slug }}{% endfor %} - {% endif %} + {% include "common/content-details.html" %}