more

+1
.githashenv
···
+
RESHASH=fefe6a8
+1
.gitignore
···
+
.githashenv
+1
docker-compose.yml
···
container_name: php-fpm-gotm
image: docker.io/php:8.2-fpm
user: "1000:1000"
+
env_file: .githashenv
volumes:
- ./site:/var/www/gotm
ports:
+5
githash.sh
···
+
#!/bin/bash
+
+
COMMITHASH=$(git rev-parse --short HEAD);
+
+
echo "RESHASH=$COMMITHASH" > .githashenv
+7 -2
site/assets/styles/main.css
···
h1,h2,h3,h4 {
font-family: 'Raleway', sans-serif;
color: #330099;
-
margin: 0 auto 0 auto;
+
margin: auto;
text-transform: uppercase;
text-align: center;
font-weight: 200;
···
.highlight {
background: #9999ff;
color: #fff;
-
display: inline;
}
.desc::before {
···
a:hover.highlight, a:hover.highlight::selection {
background: #746fd4;
}
+
+
.githashtag {
+
padding-right: .3rem;
+
font-size: 1.3rem;
+
vertical-align: middle;
+
}
-30
site/docs.html
···
-
<!DOCTYPE html>
-
<html lang="en">
-
-
<head>
-
<meta charset="UTF-8">
-
-
<link rel="icon" type="image/x-icon" href="139.png">
-
<link rel="stylesheet" href="main.css">
-
-
<title>girl on the moon :: documentation</title>
-
-
</head>
-
-
<body>
-
-
<article>
-
<p><span class="highlight">documentation</span></p>
-
<ul>
-
<li><a href="https://stash.4-walls.net/selfhostdw/" class="highlight">self hosting dreamwidth with docker</a><br>
-
<span class="desc">how to deploy a production instance of the <a href="https://github.com/dreamwidth/dreamwidth/">dreamwidth</a> code in docker</span></li>
-
<li><a href="https://stash.4-walls.net/irc1/" class="highlight">hosting soju + gamja with docker</a><br>
-
<span class="desc">how to deploy the IRC gamja web client & soju bouncer software in docker</span></li>
-
<li><a href="https://superlove.sayitditto.net/works/338" class="highlight">OTW-archive paperclip to active storage</a><br>
-
<span class="desc">now obsolete and superseded by upstream doing their own migration, but notable because i did it first</span></li>
-
</ul>
-
</article>
-
-
</body>
-
-
</html>
+31
site/docs.php
···
+
<?php
+
+
include "httpheaders.php";
+
+
?>
+
+
<!DOCTYPE html>
+
<html lang="en">
+
+
<?php include "head.php" ?>
+
+
<body>
+
+
<main>
+
<header>
+
<h1 class="highlight">documentation</h1>
+
</header>
+
+
<ul>
+
<li><a href="https://stash.4-walls.net/selfhostdw/" class="highlight">self hosting dreamwidth with docker</a><br>
+
<span class="desc">how to deploy a production instance of the <a href="https://github.com/dreamwidth/dreamwidth/">dreamwidth</a> code in docker</span></li>
+
<li><a href="https://stash.4-walls.net/irc1/" class="highlight">hosting soju + gamja with docker</a><br>
+
<span class="desc">how to deploy the IRC gamja web client & soju bouncer software in docker</span></li>
+
<li><a href="https://superlove.sayitditto.net/works/338" class="highlight">OTW-archive paperclip to active storage</a><br>
+
<span class="desc">now obsolete and superseded by upstream doing their own migration, but notable because i did it first</span></li>
+
</ul>
+
</main>
+
+
</body>
+
+
</html>
+10 -3
site/nav.php
···
<nav>
-
<p>๐Ÿ”— <a href="docs.html">docs</a></p>
+
<p><span aria-hidden="true">๐Ÿ”—</span> <a href="docs.php">docs</a></p>
+
+
<p><?php
+
$hash = getenv("RESHASH");
+
$hashUrl = "https://bytes.4-walls.net/girlonthemoon/girlonthemoon/commit" . "/" . $hash;
+
echo "<span class='githashtag' aria-hidden='true'>#</span><a class='githashlink' href='$hashUrl'>$hash</a></span>";
+
?></p>
-
<p>๐ŸŒ <a href="https://bubblegum.girlonthemoon.xyz/">blog</a>, <a href="mailto:witnesslachesis@disroot.org">email</a>, <a href="assets/misc/pgp.txt">PGP key</a></p>
+
<p><span aria-hidden="true">๐ŸŒ<span> <a href="https://bubblegum.girlonthemoon.xyz/">blog</a>, <a href="mailto:witnesslachesis@disroot.org">email</a>, <a href="assets/misc/pgp.txt">PGP key</a></p>
-
<p>๐Ÿ’™ <a href="https://www.patreon.com/c/girlonthemoon">patreon</a>, <a href="https://ko-fi.com/girlonthemoon">ko-fi</a></p>
+
<p><span aria-hidden="true">๐Ÿ’™</span> <a href="https://www.patreon.com/c/girlonthemoon">patreon</a>, <a href="https://ko-fi.com/girlonthemoon">ko-fi</a></p>
+
</nav>