From ee27e4acc32a04b78407c84d8d82f8069f9b7317 Mon Sep 17 00:00:00 2001 From: nonumeros Date: Sat, 13 Apr 2019 19:52:38 -0400 Subject: [PATCH] .URL is deprecated and will be removed in a future release --- layouts/partials/head.html | 2 +- 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 @@ - {{ 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 }}