Move view counter

This commit is contained in:
Bashy 2026-03-27 16:59:33 +01:00
parent 52ae011cb6
commit c78d79d795
2 changed files with 5 additions and 2 deletions

View file

@ -11,6 +11,7 @@ primary_color: '#ffc107'
secondary_color: '#296126' secondary_color: '#296126'
sidebar: true # Display sidebar sidebar: true # Display sidebar
scarves: true # Display scarves scarves: true # Display scarves
visitCounter: false # Insert a link for visit counter, eg: '<script data-goatcounter="https://x.goatcounter.com/count" async src="//gc.zgo.at/count.js"></script>'
#Footer #Footer
hexo: true # Display "Powered by Hexo" in footer hexo: true # Display "Powered by Hexo" in footer

View file

@ -16,7 +16,9 @@
<meta property="og:type" content="website"> <meta property="og:type" content="website">
<meta property="og:url" content="<%= config.url %>"> <meta property="og:url" content="<%= config.url %>">
<script data-goatcounter="https://bashynx.goatcounter.com/count" async src="//gc.zgo.at/count.js"></script> <% if (theme.visitCounter) { %>
<%- theme.visitCounter %>
<% } %>
<link rel="icon" href="<%= url_for(theme.favicon) %>"> <link rel="icon" href="<%= url_for(theme.favicon) %>">
@ -114,7 +116,7 @@
<div class="footer smoll"> <div class="footer smoll">
<% if (theme.hexo) { %> <% if (theme.hexo) { %>
<div class="hexo footer"> <div class="hexo footer">
Powered by Hexo, theme <a href="https://tapestry.demo.bashynx.dev" target="_blank">Tapestry Code (WIP)</a><br> Powered by Hexo, theme <a href="https://github.com/HackmanClub/tapestry-code" target="_blank">Tapestry Code</a><br>
</div> </div>
<% } %> <% } %>
<% if (theme.copyright) { %> <% if (theme.copyright) { %>