Add webring links, plus add counter to home template.

This commit is contained in:
Joe Ardent 2024-03-31 10:35:20 -07:00
parent ef9d7ac9be
commit eadbe5f4d3
3 changed files with 54 additions and 4 deletions

View file

@ -0,0 +1,16 @@
+++
title = "Hitman: another fine essential sundry service from Nebcorp Heavy Industries and Sundries"
slug = "hitman"
date = "2024-03-31"
draft = true
[taxonomies]
tags = ["software", "sundry", "proclamation", "90s", "hitman", "web"]
+++
# Hitman counts your hits, man.
## The dream
## The reality

View file

@ -1,9 +1,9 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block main_content %} {% block main_content %}
{% if section.extra.section_path -%} {% if section.extra.section_path -%}
{% set section = get_section(path=section.extra.section_path) %} {% set section = get_section(path=section.extra.section_path) %}
{% endif -%} {% endif -%}
{{ post_macros::page_header(title=section.title) }} {{ post_macros::page_header(title=section.title) }}
@ -12,5 +12,35 @@
{{ post_macros::list_posts(pages = term.pages) }} {{ post_macros::list_posts(pages = term.pages) }}
{% endblock main_content %} <hr>
<script src="/js/footnoter.js"></script>
<div class=hias-footer>
<p>There have been <span id="hitman-count">no</span> views of this page.</p>
<p><a href=https://webring.club/tJiARCf_atDhfvzd/previous></a> - The Constellation Webring - <a
href=https://webring.club/tJiARCf_atDhfvzd/next>→</a> </p>
<hr>
<p>
<script async defer src="https://www.recurse-scout.com/loader.js?t=e38ac183ce767b3800a4b4587c00f3fd"></script>
<div class="rc-scout"></div>
</p>
</div>
<script defer>
const hits = document.getElementById('hitman-count');
fetch("/hit/main-landing-page").then((resp) => {
if (resp.ok) {
return resp.text();
} else {
return "I don't even know how many";
}
}).then((data) => {
hits.innerHTML = data;
});
</script>
{% endblock main_content %}

View file

@ -8,6 +8,10 @@
<script src="/js/footnoter.js"></script> <script src="/js/footnoter.js"></script>
<div class=hias-footer> <div class=hias-footer>
<p>There have been <span id="hitman-count">no</span> views of this page.</p> <p>There have been <span id="hitman-count">no</span> views of this page.</p>
<p><a href=https://webring.club/tJiARCf_atDhfvzd/previous></a> - The Constellation Webring - <a
href=https://webring.club/tJiARCf_atDhfvzd/next>→</a> </p>
<hr>
<p> <p>
<script async defer src="https://www.recurse-scout.com/loader.js?t=e38ac183ce767b3800a4b4587c00f3fd"></script> <script async defer src="https://www.recurse-scout.com/loader.js?t=e38ac183ce767b3800a4b4587c00f3fd"></script>
<div class="rc-scout"></div> <div class="rc-scout"></div>