summaryrefslogtreecommitdiff
path: root/_includes/views/pagination-item.html
diff options
context:
space:
mode:
Diffstat (limited to '_includes/views/pagination-item.html')
-rw-r--r--_includes/views/pagination-item.html32
1 files changed, 32 insertions, 0 deletions
diff --git a/_includes/views/pagination-item.html b/_includes/views/pagination-item.html
new file mode 100644
index 0000000..bea6d91
--- /dev/null
+++ b/_includes/views/pagination-item.html
@@ -0,0 +1,32 @@
+{%- assign date_format = site.yat.date_format | default: "%b %-d, %Y" -%}
+
+{% assign article = post.content %}
+{% assign lang = post.lang %}
+{%- include functions.html func='get_reading_time' -%}
+{% assign reading_time = return %}
+{%- include functions.html func='get_article_excerpt' -%}
+{% assign excerpt = return %}
+{%- assign post_url = post.url | relative_url -%}
+
+<li class="{{ post_item_class }}">
+ <h2 class="post-title">
+ <a class="post-link" href="{{ post_url }}">
+ {{ post.title | escape }}
+ {%- include views/post-badges.html -%}
+ </a>
+ </h2>
+ <div class="post-meta">
+ <span class="post-date"><i class="fa fa-calendar"></i> {{ post.date | date: date_format }}</span>
+ <span class="post-reading-time left-vsplit"><i class="fa fa-clock-o"></i> {{ reading_time }}</span>
+ </div>
+ <a class="post-excerpt" href="{{ post_url }}">
+ <p>
+ {{ excerpt }} <span class="read_more">Read More</span>
+ </p>
+ </a>
+ <div class="post-tags">
+ {%- for tag in post.tags -%}
+ <a class="post-tag" href="{{ '/tags.html ' | relative_url }}#{{tag}}">#{{tag}}</a>
+ {%- endfor -%}
+ </div>
+</li>