aboutsummaryrefslogtreecommitdiffstats
path: root/site
diff options
context:
space:
mode:
authorAdam Mathes <adam@trenchant.org>2017-12-17 10:52:09 -0800
committerAdam Mathes <adam@trenchant.org>2017-12-17 10:52:09 -0800
commit24fdaa7a398c1ec20c8b02e51ef362248c3adf4e (patch)
treeb1a9e5d19b123a36301d026961c828a59d4e2374 /site
parent6e33ee7e84d98eed6201a578d965565fb67a9776 (diff)
downloadsnkt-24fdaa7a398c1ec20c8b02e51ef362248c3adf4e.tar.gz
snkt-24fdaa7a398c1ec20c8b02e51ef362248c3adf4e.tar.bz2
snkt-24fdaa7a398c1ec20c8b02e51ef362248c3adf4e.zip
tag sort stuff
Diffstat (limited to 'site')
-rw-r--r--site/site.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/site/site.go b/site/site.go
index 8020c87..136c100 100644
--- a/site/site.go
+++ b/site/site.go
@@ -36,12 +36,12 @@ func (s *Site) Read() {
if render.TmplExists("archive") {
s.Archive = archive.NewListArchive(s.Posts)
- s.Archive.Site = *s
+ s.Archive.Site = s
sort.Sort(sort.Reverse(s.Archive.Posts))
}
if render.TmplExists("rss") {
s.Rss = archive.NewRssArchive(s.Posts)
- s.Rss.Site = *s
+ s.Rss.Site = s
}
if render.TmplExists("paged") {
s.Paged = archive.CreatePaged(15, s.Posts)