From 74232e32b5f904feb21870121ba61f2fc675ab49 Mon Sep 17 00:00:00 2001
From: Yudi <yudiwidiyanto7@gmail.com>
Date: Wed, 01 May 2019 17:01:25 +0000
Subject: [PATCH] replace .URL with .RelPermalink (#176)

---
 layouts/partials/posts/series.html |    6 +++---
 layouts/partials/list.html         |    2 +-
 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 }}
     <li>
       <span class="date">{{ .Date.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }}</span>
-      <a class="title" href="{{ .Params.ExternalLink | default .URL }}">{{ .Title }}</a>
+      <a class="title" href="{{ .Params.ExternalLink | default .RelPermalink }}">{{ .Title }}</a>
     </li>
     {{ end }}
   </ul>
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 }}
 <section class="see-also">
   {{ range .Params.series }}
@@ -10,9 +10,9 @@
         <ul>
         {{ $maxItems := $.Site.Params.maxSeeAlsoItems | default 5 }}
         {{ range first (add $maxItems 1) $series.Pages }}
-          {{ if ne .URL $currentPageUrl }}
+          {{ if ne .RelPermalink $currentPageUrl }}
             <li>
-              <a href="{{ .Params.ExternalLink | default .URL }}">{{ .Title }}</a>
+              <a href="{{ .Params.ExternalLink | default .RelPermalink }}">{{ .Title }}</a>
             </li>
           {{ end }}
         {{ end }}
diff --git a/layouts/posts/li.html b/layouts/posts/li.html
index 7077125..a9ba684 100644
--- a/layouts/posts/li.html
+++ b/layouts/posts/li.html
@@ -1,4 +1,4 @@
 <li>
   <span class="date">{{ .Date.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }}</span>
-  <a class="title" href="{{ .Params.ExternalLink | default .URL }}">{{ .Title }}</a>
+  <a class="title" href="{{ .Params.ExternalLink | default .RelPermalink }}">{{ .Title }}</a>
 </li>

--
Gitblit v1.10.0