diff options
author | Salim B <salim@posteo.de> | 2019-04-19 01:52:14 +0300 |
---|---|---|
committer | Guillermo Guerrero Ibarra <wolf.fox1985@gmail.com> | 2019-04-19 01:52:14 +0300 |
commit | 05cd987d88dcb3c614accce7bcc090fe062dff4f (patch) | |
tree | 567c6e35821e1aa9166d0b28851ce6c704ee11a6 | |
parent | 2ff55af49c4cf347ba8c2e45864203ff63cea0e5 (diff) |
replace deprecated Page.URL with Page.Permalink (#205)
* replace deprecated Page.URL variable Page.Permalink
* replace deprecated Page.URL with Page.RelPermalink
-rw-r--r-- | layouts/partials/head.html | 2 | ||||
-rw-r--r-- | layouts/partials/nav.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 756bf33..834a733 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -69,7 +69,7 @@ <!-- Facebook OpenGraph tags --> <meta property="og:title" content="{{ .Title }}" /> <meta property="og:type" content="website" /> - <meta property="og:url" content="{{ .URL }}/" /> + <meta property="og:url" content="{{ .Permalink }}/" /> <meta property="og:image" content="{{ .Site.Params.logo }}" /> </head> diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html index c06123c..005ec08 100644 --- a/layouts/partials/nav.html +++ b/layouts/partials/nav.html @@ -23,7 +23,7 @@ {{ $current := . }} {{ range .Site.Menus.main }} {{ $topLevel := replace .URL "/" "" }} - <li class="dropdown{{ if not $current.IsHome }}{{ if or (eq $current.URL .URL) (eq $current.Type $topLevel) }} active{{ end }}{{ end }}"> + <li class="dropdown{{ if not $current.IsHome }}{{ if or (eq $current.RelPermalink .URL) (eq $current.Type $topLevel) }} active{{ end }}{{ end }}"> {{ if .HasChildren }} <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">{{ .Name }} <span class="caret"></span></a> <ul class="dropdown-menu"> |