From 6c52934e932abd3b0bf8014105bd6379cec6a91a Mon Sep 17 00:00:00 2001 From: Hanwen Guo Date: Sun, 1 Jan 2023 17:08:14 +0800 Subject: [PATCH] feat: use relative URL --- layouts/partials/menu_item.html | 2 +- layouts/partials/post_list.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/partials/menu_item.html b/layouts/partials/menu_item.html index 2603551..5fa3caa 100644 --- a/layouts/partials/menu_item.html +++ b/layouts/partials/menu_item.html @@ -2,7 +2,7 @@ {{- range $item := .collection -}}
  • {{- with $item.url -}} - {{ safeHTML $item.title }} + {{ safeHTML $item.title }} {{- else -}} {{ safeHTML $item.title }} {{- end -}} diff --git a/layouts/partials/post_list.html b/layouts/partials/post_list.html index 22a35b6..083ffd7 100644 --- a/layouts/partials/post_list.html +++ b/layouts/partials/post_list.html @@ -29,11 +29,11 @@ {{- range $post := $posts -}}
  • {{- ($post.Date | time.Format site.Params.theme_config.date_format) }} - {{ $post.Title }} + {{ $post.Title }}
  • {{ end }} {{- if and .show_more $limit_exceeded }} -
  • {{ .show_more_text | default "Show more..." }}
  • +
  • {{ .show_more_text | default "Show more..." }}
  • {{ end }} {{ end }}