Public Access
1
0

new: view counter

This commit is contained in:
giteaadmin
2025-08-22 23:28:53 -04:00
parent af4501e527
commit ecdac48379
7 changed files with 132 additions and 8 deletions

View File

@@ -94,4 +94,4 @@
</footer>
<script src="/js/main.js"></script>
</body>
</html>
</html>

View File

@@ -9,8 +9,12 @@ layout: "layout.njk"
</a>
</div>
<h1>{{ title }}</h1>
<p class="text-gray-400">Published on {{ date | readableDate }}</p>
<div class="post-meta">
<p class="text-gray-400">Published on {{ date | readableDate }}</p>
<span class="view-count" data-view-count data-slug="{{ page.fileSlug }}">Loading views...</span>
</div>
<br/>
{{ content | safe }}
</article>
<div id="bottom"></div>
<script src="/js/view-counter.js"></script>
<div id="bottom"></div>