diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 1b43d6a..a94099c 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -6,7 +6,7 @@ - {{ if eq .Url "/" }} + {{ if eq .URL "/" }} {{ .Site.Params.Title }} · {{ .Site.Params.Tagline }} {{ else }} {{ .Title }} · {{ .Site.Params.Title }} diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 5bd990d..2251123 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -9,18 +9,18 @@ </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 .URL "/" }} active {{ end }}" href="/">Home</a> + <a class="sidebar-nav-item {{ if eq .URL "post" }} active {{ end }}" href="/post">Posts</a> {{ $thisperma := .Permalink }} - {{ range .Site.Recent.ByWeight }} + {{ range .Site.Pages.ByWeight }} {{ if isset .Params "sidebar" }} <a class="sidebar-nav-item {{ if eq .Permalink $thisperma }} active {{ end }}" href="{{ .Permalink }}">{{ .Title }}</a> {{ end }} {{ end }} - <a class="sidebar-nav-item" href="{{ .Site.Params.Github.Url }}/archive/{{ .Site.Params.Github.Head }}.zip">Download</a> - <a class="sidebar-nav-item" href="{{ .Site.Params.Github.Url }}">GitHub project</a> + <a class="sidebar-nav-item" href="{{ .Site.Params.Github.URL }}/archive/{{ .Site.Params.Github.Head }}.zip">Download</a> + <a class="sidebar-nav-item" href="{{ .Site.Params.Github.URL }}">GitHub project</a> <span class="sidebar-nav-item">Currently on {{ .Site.Params.Github.Head }}</span> </nav> diff --git a/theme.toml b/theme.toml index 404af08..d69318d 100644 --- a/theme.toml +++ b/theme.toml @@ -5,7 +5,7 @@ description = "Lanyon-Hugo is a theme designed for blogging." homepage = "https://github.com/tummychow/lanyon-hugo" tags = ["blog",] features = ["blog", ] -min_version = 0.12 +min_version = 0.14 [author] name = "tummychow"