From 2c9dabe3e8c5b88e0dccbe207149a0842d72e19b Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Sat, 30 Jul 2022 17:11:43 +0800 Subject: [PATCH] :pencil: Feat: add repost URL at the end of markdown --- layouts/_default/single.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layouts/_default/single.md b/layouts/_default/single.md index f310a21b..34e468ff 100644 --- a/layouts/_default/single.md +++ b/layouts/_default/single.md @@ -10,4 +10,5 @@ --- > {{ T "author"}}: {{ .Site.Author.name }} -> {{ .Permalink }} +> URL: {{ .Permalink }} +{{ if $params.repost.enable | and (hasPrefix $params.repost.url "http") }}> {{ T "repost" }} URL: {{ $params.repost.url }}{{ end }}