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

github.com/coderzh/hugo-pacman-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcoderzh <coderzh@gmail.com>2017-01-15 15:56:07 +0300
committercoderzh <coderzh@gmail.com>2017-01-15 15:56:14 +0300
commit204634534471ee4a2962e3e418627864c9fa56b5 (patch)
tree2544f9f65b0ee19fc7cf3b85fab6a9a2e85e209f
parent0a6aadddbd8ddbd3b327e87bac57f8801946d177 (diff)
fix archive page error under new Hugo version
-rw-r--r--layouts/partials/widgets/archive.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/widgets/archive.html b/layouts/partials/widgets/archive.html
index f65cfca..1e1aa74 100644
--- a/layouts/partials/widgets/archive.html
+++ b/layouts/partials/widgets/archive.html
@@ -3,7 +3,7 @@
<p class="asidetitle">{{ .Site.Params.Strings.Archive }}</p>
<ul class="archive-list">
{{ range $value := .Site.Pages.GroupByDate .Site.Params.MonthFormat }}
- {{ $url := (index $value.Pages 0).Node.Date.Format "2006-01" | urlize }}
+ {{ $url := (index $value.Pages 0).Date.Format "2006-01" | urlize }}
<li class="archive-list-item">
<a class="archive-list-link" href="{{ $.Site.BaseURL }}post/#{{ $url }}">{{ .Key }}</a><span class="archive-list-count">{{ len $value.Pages }}</span>
</li>