From a2e44a0a2e9f2334f4257be1c83f7edcdb104601 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 19 Jun 2022 21:06:35 +0100 Subject: [PATCH] More content details to generic location --- static/src/scss/_content.scss | 10 ++++++++++ static/src/scss/_hero.scss | 10 ---------- website/common/templates/common/content-details.html | 7 +++++++ website/common/templates/common/hero.html | 8 +------- website/common/templates/common/listing-item.html | 2 +- 5 files changed, 19 insertions(+), 18 deletions(-) create mode 100644 website/common/templates/common/content-details.html 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" %}