Show stats on About page if public_stats enabled

Previously, it would only show the stats if federation was enabled.
This commit is contained in:
Matt Baer 2018-12-03 18:49:12 -05:00
parent 8cbc02d7cf
commit cb2b30b379

View file

@ -7,7 +7,7 @@
{{.Content}}
{{if .Federation}}
{{if .PublicStats}}
<hr style="margin:1.5em 0;" />
<p><em>{{.SiteName}}</em> is home to <strong>{{largeNumFmt .AboutStats.NumPosts}}</strong> {{pluralize "article" "articles" .AboutStats.NumPosts}} across <strong>{{largeNumFmt .AboutStats.NumBlogs}}</strong> {{pluralize "blog" "blogs" .AboutStats.NumBlogs}}.</p>
{{end}}