more

+1
.githashenv
··· 1 + RESHASH=fefe6a8
+1
.gitignore
··· 1 + .githashenv
+1
docker-compose.yml
··· 15 15 container_name: php-fpm-gotm 16 16 image: docker.io/php:8.2-fpm 17 17 user: "1000:1000" 18 + env_file: .githashenv 18 19 volumes: 19 20 - ./site:/var/www/gotm 20 21 ports:
+5
githash.sh
··· 1 + #!/bin/bash 2 + 3 + COMMITHASH=$(git rev-parse --short HEAD); 4 + 5 + echo "RESHASH=$COMMITHASH" > .githashenv
+7 -2
site/assets/styles/main.css
··· 53 53 h1,h2,h3,h4 { 54 54 font-family: 'Raleway', sans-serif; 55 55 color: #330099; 56 - margin: 0 auto 0 auto; 56 + margin: auto; 57 57 text-transform: uppercase; 58 58 text-align: center; 59 59 font-weight: 200; ··· 76 76 .highlight { 77 77 background: #9999ff; 78 78 color: #fff; 79 - display: inline; 80 79 } 81 80 82 81 .desc::before { ··· 101 100 a:hover.highlight, a:hover.highlight::selection { 102 101 background: #746fd4; 103 102 } 103 + 104 + .githashtag { 105 + padding-right: .3rem; 106 + font-size: 1.3rem; 107 + vertical-align: middle; 108 + }
-30
site/docs.html
··· 1 - <!DOCTYPE html> 2 - <html lang="en"> 3 - 4 - <head> 5 - <meta charset="UTF-8"> 6 - 7 - <link rel="icon" type="image/x-icon" href="139.png"> 8 - <link rel="stylesheet" href="main.css"> 9 - 10 - <title>girl on the moon :: documentation</title> 11 - 12 - </head> 13 - 14 - <body> 15 - 16 - <article> 17 - <p><span class="highlight">documentation</span></p> 18 - <ul> 19 - <li><a href="https://stash.4-walls.net/selfhostdw/" class="highlight">self hosting dreamwidth with docker</a><br> 20 - <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> 21 - <li><a href="https://stash.4-walls.net/irc1/" class="highlight">hosting soju + gamja with docker</a><br> 22 - <span class="desc">how to deploy the IRC gamja web client & soju bouncer software in docker</span></li> 23 - <li><a href="https://superlove.sayitditto.net/works/338" class="highlight">OTW-archive paperclip to active storage</a><br> 24 - <span class="desc">now obsolete and superseded by upstream doing their own migration, but notable because i did it first</span></li> 25 - </ul> 26 - </article> 27 - 28 - </body> 29 - 30 - </html>
+31
site/docs.php
··· 1 + <?php 2 + 3 + include "httpheaders.php"; 4 + 5 + ?> 6 + 7 + <!DOCTYPE html> 8 + <html lang="en"> 9 + 10 + <?php include "head.php" ?> 11 + 12 + <body> 13 + 14 + <main> 15 + <header> 16 + <h1 class="highlight">documentation</h1> 17 + </header> 18 + 19 + <ul> 20 + <li><a href="https://stash.4-walls.net/selfhostdw/" class="highlight">self hosting dreamwidth with docker</a><br> 21 + <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> 22 + <li><a href="https://stash.4-walls.net/irc1/" class="highlight">hosting soju + gamja with docker</a><br> 23 + <span class="desc">how to deploy the IRC gamja web client & soju bouncer software in docker</span></li> 24 + <li><a href="https://superlove.sayitditto.net/works/338" class="highlight">OTW-archive paperclip to active storage</a><br> 25 + <span class="desc">now obsolete and superseded by upstream doing their own migration, but notable because i did it first</span></li> 26 + </ul> 27 + </main> 28 + 29 + </body> 30 + 31 + </html>
+10 -3
site/nav.php
··· 1 1 <nav> 2 - <p>๐Ÿ”— <a href="docs.html">docs</a></p> 2 + <p><span aria-hidden="true">๐Ÿ”—</span> <a href="docs.php">docs</a></p> 3 + 4 + <p><?php 5 + $hash = getenv("RESHASH"); 6 + $hashUrl = "https://bytes.4-walls.net/girlonthemoon/girlonthemoon/commit" . "/" . $hash; 7 + echo "<span class='githashtag' aria-hidden='true'>#</span><a class='githashlink' href='$hashUrl'>$hash</a></span>"; 8 + ?></p> 3 9 4 - <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> 10 + <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> 5 11 6 - <p>๐Ÿ’™ <a href="https://www.patreon.com/c/girlonthemoon">patreon</a>, <a href="https://ko-fi.com/girlonthemoon">ko-fi</a></p> 12 + <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> 13 + 7 14 </nav>