Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jimfrenette/hugo-starter.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjimfrenette <jimfrenette@yahoo.com>2019-12-16 05:49:42 +0300
committerjimfrenette <jimfrenette@yahoo.com>2019-12-16 05:49:42 +0300
commit17d8afc6eba785a20bf16cd82a92038e35766975 (patch)
tree4b0ba7a0784efba725b386233d2af35d1baed141
parent4b2b147cb13de1fcb7f128926362f66069a38d61 (diff)
replace deprecated .URL w/ .Permalink for pages
-rwxr-xr-xlayouts/index.html4
-rw-r--r--layouts/partials/summary.html2
-rw-r--r--layouts/post/summary.html2
3 files changed, 4 insertions, 4 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 25ade93..cf2afc9 100755
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -39,7 +39,7 @@ pages. */}}
on the outside */}}
{{ range (first 4 (after $n_posts $section)) }}
<h2>
- <a href="{{ .URL }}">
+ <a href="{{ .Permalink }}">
{{ .Title }}
</a>
</h2>
@@ -47,7 +47,7 @@ pages. */}}
{{/* As above, Use $section_name to get the section title, and URL. Use "with" to only show it if it exists */}}
{{ with .Site.GetPage "section" $section_name }}
- <a href="{{ .URL }}">All {{.Title }}</a>
+ <a href="{{ .Permalink }}">All {{.Title }}</a>
{{ end }}
</section>
{{ end }}
diff --git a/layouts/partials/summary.html b/layouts/partials/summary.html
index 5cee361..9f30c0f 100644
--- a/layouts/partials/summary.html
+++ b/layouts/partials/summary.html
@@ -2,7 +2,7 @@
<div>
<span>{{ humanize .Section }}</span>
<h1>
- <a href="{{ .URL }}">
+ <a href="{{ .Permalink }}">
{{ .Title }}
</a>
</h1>
diff --git a/layouts/post/summary.html b/layouts/post/summary.html
index 86ccddf..bbde4a7 100644
--- a/layouts/post/summary.html
+++ b/layouts/post/summary.html
@@ -5,7 +5,7 @@
</div>
{{ end }}
<h1>
- <a href="{{ .URL }}">
+ <a href="{{ .Permalink }}">
{{ .Title }}
</a>
</h1>