Skip to content

Commit

Permalink
Fix deprecated Hugo-vars and -functions
Browse files Browse the repository at this point in the history
That will stop working in Hugo 0.15.

See gohugoio/hugoThemesSite#6
  • Loading branch information
bep committed Jul 7, 2015
1 parent febd4a0 commit e324ba7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 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 .URL "/" }}
{{ .Site.Params.Title }} &middot; {{ .Site.Params.Tagline }}
{{ else }}
{{ .Title }} &middot; {{ .Site.Params.Title }}
Expand Down
10 changes: 5 additions & 5 deletions layouts/partials/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down
2 changes: 1 addition & 1 deletion theme.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit e324ba7

Please sign in to comment.