mirror of https://github.com/theNewDynamic/gohugo-theme-ananke.git

Josh Lubaway
26.00.2019 0d9656d939b58a1ea721b8cde42ef186514f00c3
refs
author Josh Lubaway <jish@users.noreply.github.com>
Saturday, October 26, 2019 19:00 +0200
committer Bud Parr <budparr@gmail.com>
Saturday, October 26, 2019 19:00 +0200
commit0d9656d939b58a1ea721b8cde42ef186514f00c3
tree efbe6e585bdaefdc69a89e56f5a8c0b461ec8850 tree | zip | gz
parent 7cb108bd540da569ef2f73ac273db1662626f57c view | diff
Replace {{ .URL }} with {{ .Permalink }} (#216)

Using the `{{ .URL }}` token results in a warning:

WARN 2019/10/13 15:12:12 Page's .URL is deprecated and will be removed in a
future release. Use .Permalink or .RelPermalink. If what you want is the
front matter URL value, use .Params.url.

Steps to reproduce
==================

Follow along with the Quick Start guide at
https://gohugo.io/getting-started/quick-start/

Running `hugo server -D` emits a warning that `.URL` is deprecated.
6 files modified
18 ■■■■ changed files
layouts/index.html 4 ●●●● diff | view | raw | blame | history
layouts/partials/site-navigation.html 2 ●●● diff | view | raw | blame | history
layouts/partials/summary-with-image.html 6 ●●●● diff | view | raw | blame | history
layouts/partials/summary.html 2 ●●● diff | view | raw | blame | history
layouts/post/summary-with-image.html 2 ●●● diff | view | raw | blame | history
layouts/post/summary.html 2 ●●● diff | view | raw | blame | history