diff options
author | nonumeros <kaploceh@gmail.com> | 2019-04-14 02:52:38 +0300 |
---|---|---|
committer | nonumeros <kaploceh@gmail.com> | 2019-04-14 02:52:38 +0300 |
commit | ee27e4acc32a04b78407c84d8d82f8069f9b7317 (patch) | |
tree | d13a2198d3ed70ab7130058a9390f8981b37e9c1 | |
parent | 85630ea94db4b8e014a0954968e99026dfbb1ac6 (diff) |
.URL is deprecated and will be removed in a future release
-rw-r--r-- | layouts/partials/head.html | 2 | ||||
-rw-r--r-- | layouts/partials/sidebar.html | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index c6f0506..16f3fd0 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -6,7 +6,7 @@ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1"> <title> - {{ if eq .URL "/" }} + {{ if eq .Permalink "/" }} {{ .Site.Params.Title }} · {{ .Site.Params.Tagline }} {{ else }} {{ .Title }} · {{ .Site.Params.Title }} diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 291c95d..1d93a67 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -9,8 +9,8 @@ </div> <nav class="sidebar-nav"> - <a class="sidebar-nav-item {{ if eq .URL "/" }} active {{ end }}" href="/">Home</a> - <a class="sidebar-nav-item {{ if eq .URL "/post/" }} active {{ end }}" href="/post">Posts</a> + <a class="sidebar-nav-item {{ if eq .Permalink "/" }} active {{ end }}" href="/">Home</a> + <a class="sidebar-nav-item {{ if eq .RelPermalink "/post/" }} active {{ end }}" href="/post">Posts</a> {{ $thisperma := .Permalink }} {{ range .Site.Pages.ByWeight }} |