don't add goatcounter tag in development
1 file changed, 3 insertions(+), 1 deletion(-)
changed files
M templates/layout.templ → templates/layout.templ
@@ -62,7 +62,9 @@ <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a>. <a href="https://git.alanpearce.eu/website/">Site source code</a> is <a href="https://opensource.org/licenses/MIT">MIT</a> </footer> - @counter(site, page.Path, page.Title) + if site.EnableGoatCounter { + @counter(site, page.Path, page.Title) + } if site.InjectLiveReload { <script defer> new EventSource("/_/reload").onmessage = event => {