diff options
author | Jeffrey Tse <jeffreytse.mail@gmail.com> | 2023-08-26 16:28:58 +0800 |
---|---|---|
committer | Jeffrey Tse <jeffreytse.mail@gmail.com> | 2023-08-26 18:27:56 +0800 |
commit | 2d389272f1f0efc01f2a958f17e1ed73578d5917 (patch) | |
tree | cf23ac38ce026598afbd493c7e02c6ac76b8d815 /_includes/views/pagination.html | |
parent | bb1e308bef725f7633909ff494940cfbb7a3f74b (diff) |
feat: rich excerpt with image support (#125)
Diffstat (limited to '_includes/views/pagination.html')
-rw-r--r-- | _includes/views/pagination.html | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/_includes/views/pagination.html b/_includes/views/pagination.html index 014df85..a9de074 100644 --- a/_includes/views/pagination.html +++ b/_includes/views/pagination.html @@ -4,10 +4,14 @@ {%- assign paginator = site -%} {%- endif -%} +{%- assign name = 'excerpt.image_style' -%} +{%- include functions.html func='get_value' default='z' -%} +{%- assign image_style = return | append: '-image-style' -%} + {%- if paginator.posts.size > 0 -%} <div class="pagination"> <!-- Post list links --> - <ul class="post-list"> + <ul class="post-list {{ image_style }}"> <!-- Top list item --> {%- if paginator == site or paginator.page == 1 -%} {%- assign post_item_class = "top-post" -%} |