summaryrefslogtreecommitdiff
path: root/_includes/views/post-header.html
diff options
context:
space:
mode:
authorjeffreytse <jeffreytse.mail@gmail.com>2020-07-12 16:23:23 +0800
committerjeffreytse <jeffreytse.mail@gmail.com>2020-07-12 16:23:23 +0800
commit413f0997d9ad36a8be97387456f47c740e071e95 (patch)
tree171de04174dfb8a1dec0ae6c7620f65f703b103b /_includes/views/post-header.html
parent8ca77da4d4488d841077c61f6c0be87344eeaddc (diff)
feat: change theme styles
Diffstat (limited to '_includes/views/post-header.html')
-rw-r--r--_includes/views/post-header.html11
1 files changed, 10 insertions, 1 deletions
diff --git a/_includes/views/post-header.html b/_includes/views/post-header.html
index 82329bd..d109597 100644
--- a/_includes/views/post-header.html
+++ b/_includes/views/post-header.html
@@ -1,6 +1,6 @@
<header class="post-header">
<h1 class="post-title p-name" itemprop="name headline">{{ heading | default: page.title | escape }}</h1>
- <h3>{{ subheading | default: page.subtitle | escape }}</h3>
+ <h3 class="post-subtitle">{{ subheading | default: page.subtitle | escape }}</h3>
<p class="post-meta">
<time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
@@ -8,4 +8,13 @@
{{ page.date | date: date_format }}
</time>
</p>
+
+ {%- if page.tags.size > 0 -%}
+ <div class="post-tags">
+ {%- for tag in page.tags -%}
+ <a class="post-tag" href="/tags.html#{{tag}}">#{{tag}}</a>
+ {%- endfor -%}
+ </div>
+ {%- endif -%}
+
</header>