Skip to content

Commit

Permalink
.URL is deprecated and will be removed in a future release
Browse files Browse the repository at this point in the history
  • Loading branch information
nonumeros committed Apr 13, 2019
1 parent 85630ea commit ee27e4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 }} &middot; {{ .Site.Params.Tagline }}
{{ else }}
{{ .Title }} &middot; {{ .Site.Params.Title }}
Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit ee27e4a

Please sign in to comment.