From c718e7e62faf8ccb7fb354a685dfccd3dd669474 Mon Sep 17 00:00:00 2001 From: jeffreytse Date: Tue, 25 May 2021 16:38:40 +0800 Subject: feat: better post excerpt of pagination Add "Read More" to the end of post excerpt, and support to click the excerpt to open the post. --- _includes/views/pagination.html | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/_includes/views/pagination.html b/_includes/views/pagination.html index fc44534..88be011 100644 --- a/_includes/views/pagination.html +++ b/_includes/views/pagination.html @@ -18,9 +18,9 @@ {% assign reading_time = return %} {%- include functions.html func='get_article_excerpt' -%} {% assign excerpt = return %} + {%- assign post_url = post.url | relative_url -%}

- {%- assign post_url = post.url | relative_url -%} {{ post.title | escape }} @@ -29,9 +29,11 @@ {{ reading_time }} -

- {{ excerpt }} -

+ +

+ {{ excerpt }} Read More +

+