From 74232e32b5f904feb21870121ba61f2fc675ab49 Mon Sep 17 00:00:00 2001 From: Yudi Date: Thu, 2 May 2019 00:01:25 +0700 Subject: [PATCH] replace .URL with .RelPermalink (#176) * replace .URL with .RelPermalink find * -type f -exec sed -i "" "s/.URL/.RelPermalink/g" {} \; * fix my bad --- layouts/partials/list.html | 2 +- layouts/partials/posts/series.html | 6 +++--- layouts/posts/li.html | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/layouts/partials/list.html b/layouts/partials/list.html index c716f02..0eaed26 100644 --- a/layouts/partials/list.html +++ b/layouts/partials/list.html @@ -11,7 +11,7 @@ {{ range .Paginator.Pages }}
  • {{ .Date.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }} - {{ .Title }} + {{ .Title }}
  • {{ end }} diff --git a/layouts/partials/posts/series.html b/layouts/partials/posts/series.html index bc0239c..831c9b5 100644 --- a/layouts/partials/posts/series.html +++ b/layouts/partials/posts/series.html @@ -1,4 +1,4 @@ -{{ $currentPageUrl := .URL }} +{{ $currentPageUrl := .RelPermalink }} {{ if .Params.series }}
    {{ range .Params.series }} @@ -10,9 +10,9 @@