Browse Source

Fix theme for work with latest Hugo

master
Vladimir Hodakov 1 year ago
parent
commit
5ce85fcbee
Signed by: fat0troll <vladimir@hodakov.me> GPG Key ID: 673980B6882F82C6
2 changed files with 6 additions and 4 deletions
  1. +4
    -2
      layouts/_default/list.html
  2. +2
    -2
      theme.toml

+ 4
- 2
layouts/_default/list.html View File

@@ -11,9 +11,10 @@
{{ .Content }}

<hr>
{{ range (.Paginate (.Data.Pages.GroupByDate "2006")).PageGroups }}
{{ if .Pages }}
{{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups}}
<h3 class="is-size-4">{{ .Key }}</h3>
{{ range .Pages }}
{{ range where .Pages "Section" "posts" }}
<article>
<span class="is-size-2"><a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a>
{{ if .Params.tags }}
@@ -29,6 +30,7 @@
</article>
{{ end }}
{{ end }}
{{ end }}
</div>
</div>



+ 2
- 2
theme.toml View File

@@ -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"


Loading…
Cancel
Save