Show stats on About page if public_stats enabled

Previously, it would only show the stats if federation was enabled.
pull/44/head
Matt Baer 6 years ago
parent 8cbc02d7cf
commit cb2b30b379
  1. 2
      pages/about.tmpl

@ -7,7 +7,7 @@
{{.Content}} {{.Content}}
{{if .Federation}} {{if .PublicStats}}
<hr style="margin:1.5em 0;" /> <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> <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}} {{end}}

Loading…
Cancel
Save