aboutsummaryrefslogtreecommitdiff
path: root/crumbs/templates/components/article_header.html
diff options
context:
space:
mode:
Diffstat (limited to 'crumbs/templates/components/article_header.html')
-rw-r--r--crumbs/templates/components/article_header.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/crumbs/templates/components/article_header.html b/crumbs/templates/components/article_header.html
new file mode 100644
index 0000000..c8839c7
--- /dev/null
+++ b/crumbs/templates/components/article_header.html
@@ -0,0 +1,18 @@
+{% if type == 'single' %}
+<h3 class="card-header-url"><a href="{{ SITEURL }}/{{ article.category|lower }}"> ⇠ Back</a></h3>
+{% else %}
+<h2 class="card-header-url"><b><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></b></h2>
+{% endif %}
+
+<div class="article-meta">
+ <p>
+ {% if article.tags|length > 0 %}
+ {% for tag in article.tags|sort %}
+ <strong>{{ tag }} |</strong>
+ {% endfor %}
+ Tags
+ {% endif %}
+ </p>
+ <p>Published <span class="tc-brown"><strong>{{ article.locale_date }}</strong></span></p>
+ <p>This article takes <span class="tc-brown"><strong>{{article.read_time_string}}</strong></span> to read.</p>
+</div> \ No newline at end of file