From e324ba78d734f1f2e1b8badff9c2b494c47f86b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Tue, 7 Jul 2015 20:47:35 +0200 Subject: Fix deprecated Hugo-vars and -functions That will stop working in Hugo 0.15. See https://github.com/spf13/hugoThemesSite/issues/6 --- layouts/partials/head.html | 2 +- layouts/partials/sidebar.html | 10 +++++----- theme.toml | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) 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" -- cgit v1.2.3