-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
6 changed files
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
<ul class="pl0 mr3"> | ||
{{ range .Site.Menus.main }} | ||
<li class="list f5 f4-ns fw4 dib pr3"> | ||
<a class="hover-white no-underline white-90" href="{{ .URL }}" title="{{ .Name }} page"> | ||
<a class="hover-white no-underline white-90" href="{{ .Permalink }}" title="{{ .Name }} page"> | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
N0hbdy
|
||
{{ .Name }} | ||
</a> | ||
</li> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Trouble with this particular URL to Permalink change?
It blocks generation on my website...