diff options
author | Stephen Jung <tummychow@users.noreply.github.com> | 2015-07-09 01:38:47 +0300 |
---|---|---|
committer | Stephen Jung <tummychow@users.noreply.github.com> | 2015-07-09 01:38:47 +0300 |
commit | ab3b656432491be43cec99ee53d7cfd2be55fe23 (patch) | |
tree | 31c1748775334e24dc304ea726c2dda51857751c | |
parent | febd4a0e378392b5e2834da8f87badaa9b039fba (diff) | |
parent | e324ba78d734f1f2e1b8badff9c2b494c47f86b3 (diff) |
Merge pull request #7 from bep/fix-hugo-deprecations
Fix deprecated Hugo-vars and -functions
-rw-r--r-- | layouts/partials/head.html | 2 | ||||
-rw-r--r-- | layouts/partials/sidebar.html | 10 | ||||
-rw-r--r-- | 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 @@ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1"> <title> - {{ 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> @@ -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" |