Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/tummychow/lanyon-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2015-07-07 21:47:35 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2015-07-07 21:47:35 +0300
commite324ba78d734f1f2e1b8badff9c2b494c47f86b3 (patch)
tree31c1748775334e24dc304ea726c2dda51857751c
parentfebd4a0e378392b5e2834da8f87badaa9b039fba (diff)
Fix deprecated Hugo-vars and -functions
That will stop working in Hugo 0.15. See https://github.com/spf13/hugoThemesSite/issues/6
-rw-r--r--layouts/partials/head.html2
-rw-r--r--layouts/partials/sidebar.html10
-rw-r--r--theme.toml2
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 }} &middot; {{ .Site.Params.Tagline }}
{{ else }}
{{ .Title }} &middot; {{ .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"