Added src directory

This commit is contained in:
Atlas Cove 2022-09-24 23:07:46 +01:00
parent 0c82403065
commit 2495425d5b
5 changed files with 40 additions and 8 deletions

View File

@ -2,12 +2,8 @@
<html>
<head>
<meta charset="utf-8">
<title> &mdash; Atlas Cove's Archives, various scraps of things and pages that may or may not be finished, some notes, some other things.</title>
<link rel="stylesheet" href="https://atlas48.neocities.org//assets/css/syntax.css" type="text/css" />
<link rel="stylesheet" href="/main.css" type="text/css" />
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
@ -17,16 +13,12 @@
</header>
<a href='https://atlas48.neocities.org//'>Home</a>&nbsp;<a href="https://atlas48.sdf.org/">Blog</a>
<hr>
<h1></h1>
<div class="container">
<h1>404</h1>
<p><strong>Page not found.</strong></p>
<p>The requested page could not be found.</p>
</div>
<hr>
<p><small><i>Built with <a href="https://jekyllrb.com/">Jekyll</a></i></small></p>
</body>
</html>

9
src/index.txti Normal file
View File

@ -0,0 +1,9 @@
_Welcome to the Atlas48 Archives!_
!/img/ucbanner.gif(The First Banner)!
Everything's slowly being set up and the like, so you'll only be able to access here unless you know the layout.
I _may_ make a sitemap, I may not. Just getting the infastructure set up.
!/img/ucbanner.gif(The Second Banner)!

11
src/not_found.txti Normal file
View File

@ -0,0 +1,11 @@
"Home":https://atlas48.neocities.org// "Blog":https://atlas48.sdf.org/
<hr />
h1. 404
*Page not found.*
The requested page could not be found.
<hr />

6
src/render.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
declare -A title=([not_found]="404 - Page Not Found" [index]="Atlas48's Archives")
for i in *.txti; do
flatiron <$i> tmp.html
m4 -DTITLE=${title[${i##.html}]} template.m4.html > ../${i/txti/html}
done

14
src/template.html.m4 Normal file
View File

@ -0,0 +1,14 @@
dnl template.m4.html v1.0
dnl Part of the tape-and-string suite used to construct the website
<!DOCTYPE html>
<html>
<head>
<style>
@include "style.css";
</style>
<title>ifdef(`TITLE',TITLE,`Untitled Atlas48 Archive Page')</title>
</head>
<body>
include(`tmp.html')
</body>
</html>