From 01a36696e666d5b05d45aa9ec03f91f59725223d Mon Sep 17 00:00:00 2001 From: jeffreytse Date: Thu, 16 Jul 2020 12:15:26 +0800 Subject: feat: truncate words for post navigation --- _layouts/post.html | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/_layouts/post.html b/_layouts/post.html index 364b76c..751b984 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -22,15 +22,13 @@ sidebar:
{%- if page.previous -%} + page.previous.title | escape }}">{{ page.previous.title | escape | truncatewords: 6 }} {%- else -%} {%- endif -%} {%- if page.next -%} - + {%- else -%} {%- endif -%} @@ -41,7 +39,7 @@ sidebar:
-- cgit v1.2.3