From 5ce85fcbeee682f756716d91405d73a85d436f1b Mon Sep 17 00:00:00 2001 From: Vladimir Hodakov Date: Sun, 10 Feb 2019 13:18:45 +0400 Subject: [PATCH] Fix theme for work with latest Hugo --- layouts/_default/list.html | 6 ++++-- theme.toml | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index e6962ee..f3afe2d 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -11,9 +11,10 @@ {{ .Content }}
- {{ range (.Paginate (.Data.Pages.GroupByDate "2006")).PageGroups }} + {{ if .Pages }} + {{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups}}

{{ .Key }}

- {{ range .Pages }} + {{ range where .Pages "Section" "posts" }}
{{ .Title }} {{ if .Params.tags }} @@ -29,6 +30,7 @@
{{ end }} {{ end }} + {{ end }} diff --git a/theme.toml b/theme.toml index 0bd8ab0..d78a262 100644 --- a/theme.toml +++ b/theme.toml @@ -1,8 +1,8 @@ name = "Tango" license = "MIT" -licenselink = "https://lab.pztrn.name/fat0troll/hugo-tango-theme/blob/master/LICENSE" +licenselink = "https://lab.wtfteam.pro/fat0troll/hugo-tango-theme/blob/master/LICENSE" description = "Hugo Theme inspired by linux.org.ru default theme" -homepage = "https://lab.pztrn.name/fat0troll/hugo-tango-theme" +homepage = "https://lab.wtfteam.pro/fat0troll/hugo-tango-theme" tags = ["blog","minimal","responsive","dark"] features = ["blog","font-awesome"] min_version = "0.33"