summaryrefslogtreecommitdiff
path: root/_includes/views/pagination.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/pagination.html
parent8ca77da4d4488d841077c61f6c0be87344eeaddc (diff)
feat: change theme styles
Diffstat (limited to '_includes/views/pagination.html')
-rw-r--r--_includes/views/pagination.html13
1 files changed, 10 insertions, 3 deletions
diff --git a/_includes/views/pagination.html b/_includes/views/pagination.html
index 11eb5aa..48e27bb 100644
--- a/_includes/views/pagination.html
+++ b/_includes/views/pagination.html
@@ -11,16 +11,23 @@
{%- for post in paginator.posts -%}
<li>
{%- assign date_format = site.yat.date_format | default: "%b %-d, %Y" -%}
- <span class="post-meta">{{ post.date | date: date_format }}</span>
- <h3>
+ <h2 class="post-title">
{%- assign post_url = post.url | relative_url -%}
<a class="post-link" href="{{ post_url }}">
{{ post.title | escape }}
</a>
- </h3>
+ </h2>
+ <div class="post-meta">
+ <span class="post-date">{{ post.date | date: date_format }}</span>
+ </div>
<p class="post-excerpt">
{{ post.content | strip_html | truncatewords: 50 }}
</p>
+ <div class="post-tags">
+ {%- for tag in post.tags -%}
+ <a class="post-tag" href="/tags.html#{{tag}}">#{{tag}}</a>
+ {%- endfor -%}
+ </div>
</li>
{%- endfor -%}
</ul>