tape & string works!

This commit is contained in:
Atlas Cove 2023-02-01 21:08:28 +00:00
parent ce9605a6b4
commit 19f68752e0
6 changed files with 173 additions and 19 deletions

View File

@ -1,18 +1,21 @@
<!DOCTYPE html>
<html>
<head>
<style>
@include "style.css";
</style>
<title></title>
<title>Atlas48's Archives</title>
</head>
<body>
<p><em>Welcome to the Atlas48 Archives!</em></p>
<p><img src="/img/ucbanner.gif" alt="The First Banner" /></p>
<p><img src="/img/ucbanner.gif" title="The First Banner" alt="The First Banner" /></p>
<p>Everything&#8217;s slowly being set up and the like, so you&#8217;ll only be able to access here unless you know the layout.</p>
<p>I <em>may</em> make a sitemap, I may not. Just getting the infastructure set up.</p>
<h1><span class="caps">TODO</span><br />
<strong> find a way to render the org-mode files<br />
</strong> maybe make an automated sitemap renderer?</h1>
<h1><span class="caps">TODO</span></h1>
<ul>
<li>find a way to render the org-mode files</li>
<li>maybe make an automated sitemap renderer?</li>
</ul>
</body>
</html>

View File

@ -1,17 +1,18 @@
<!DOCTYPE html>
<html>
<head>
<style>
@include "style.css";
</style>
<title></title>
<title>Atlas48's Archives</title>
</head>
<body>
<p><a href="https://atlas48.neocities.org//&#160;"Blog":https://atlas48.sdf.org/">Home</a></p>
<p><hr /></p>
<p><a href="https://atlas48.neocities.org// ">Home</a><a href="https://atlas48.sdf.org/">Blog</a></p>
<hr />
<h1>404</h1>
<p><strong>Page not found.</strong></p>
<p>The requested page could not be found.</p>
<p><hr /></p>
<hr />
</body>
</html>

View File

@ -1,9 +1,159 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://atlas48.neocities.org/</loc>
<loc>https://atlas48.neocities.org/dnd</loc>
<lastmod>2023-52-01</lastmod>
</url>
<url>
<loc>https://atlas48.neocities.org/dnd/minions.org</loc>
<lastmod>2023-43-01</lastmod>
</url>
<url>
<loc>https://atlas48.neocities.org/dnd/template.org</loc>
<lastmod>2023-43-01</lastmod>
</url>
<url>
<loc>https://atlas48.neocities.org/dnd/xaviard.html</loc>
<lastmod>2023-54-01</lastmod>
</url>
<url>
<loc>https://atlas48.neocities.org/dnd/villains.html</loc>
<lastmod>2023-54-01</lastmod>
</url>
<url>
<loc>https://atlas48.neocities.org/dnd/villains.org</loc>
<lastmod>2023-43-01</lastmod>
</url>
<url>
<loc>https://atlas48.neocities.org/dnd/template.html</loc>
<lastmod>2023-54-01</lastmod>
</url>
<url>
<loc>https://atlas48.neocities.org/dnd/minions.html</loc>
<lastmod>2023-53-01</lastmod>
</url>
<url>
<loc>https://atlas48.neocities.org/dnd/xaviard.org</loc>
<lastmod>2023-43-01</lastmod>
</url>
<url>
<loc>https://atlas48.neocities.org/img</loc>
<lastmod>2022-49-25</lastmod>
</url>
<url>
<loc>https://atlas48.neocities.org/img/av.png</loc>
<lastmod>2021-00-07</lastmod>
</url>
<url>
<loc>https://atlas48.neocities.org/img/ucbanner.gif</loc>
<lastmod>2021-01-07</lastmod>
</url>
<url>
<loc>https://atlas48.neocities.org/index.html</loc>
<lastmod>2023-54-01</lastmod>
</url>
<url>
<loc>https://atlas48.neocities.org/index.txti</loc>
<lastmod>2023-43-01</lastmod>
</url>
<url>
<loc>https://atlas48.neocities.org/js</loc>
<lastmod>2022-14-24</lastmod>
</url>
<url>
<loc>https://atlas48.neocities.org/neocities.png</loc>
<lastmod>2021-36-20</lastmod>
</url>
<url>
<loc>https://atlas48.neocities.org/not_found.html</loc>
<lastmod>2023-53-01</lastmod>
</url>
<url>
<loc>https://atlas48.neocities.org/not_found.txti</loc>
<lastmod>2023-43-01</lastmod>
</url>
<url>
<loc>https://atlas48.neocities.org/robots.txt</loc>
<lastmod>2022-42-04</lastmod>
</url>
<url>
<loc>https://atlas48.neocities.org/sitemap.xml</loc>
<lastmod>2023-56-01</lastmod>
</url>
<url>
<loc>https://atlas48.neocities.org/src</loc>
<lastmod>2023-27-22</lastmod>
</url>
<url>
<loc>https://atlas48.neocities.org/src/not_found.txti</loc>
<lastmod>2022-36-24</lastmod>
</url>
<url>
<loc>https://atlas48.neocities.org/src/dnd</loc>
<lastmod>2023-39-22</lastmod>
</url>
<url>
<loc>https://atlas48.neocities.org/src/dnd/minions.org</loc>
<lastmod>2022-12-15</lastmod>
</url>
<url>
<loc>https://atlas48.neocities.org/src/dnd/template.org</loc>
<lastmod>2022-01-15</lastmod>
</url>
<url>
<loc>https://atlas48.neocities.org/src/dnd/villains.org</loc>
<lastmod>2022-12-15</lastmod>
</url>
<url>
<loc>https://atlas48.neocities.org/src/dnd/xaviard.org</loc>
<lastmod>2022-02-15</lastmod>
</url>
<url>
<loc>https://atlas48.neocities.org/src/index.txti</loc>
<lastmod>2022-06-15</lastmod>
</url>
<url>
<loc>https://atlas48.neocities.org/src/_tape</loc>
<lastmod>2023-56-01</lastmod>
</url>
<url>
<loc>https://atlas48.neocities.org/src/_tape/.editorconfig</loc>
<lastmod>2023-46-21</lastmod>
</url>
<url>
<loc>https://atlas48.neocities.org/src/_tape/render.sh</loc>
<lastmod>2023-53-01</lastmod>
</url>
<url>
<loc>https://atlas48.neocities.org/src/_tape/main.html.m4</loc>
<lastmod>2023-18-01</lastmod>
</url>
<url>
<loc>https://atlas48.neocities.org/src/_tape/push.sh</loc>
<lastmod>2023-50-21</lastmod>
</url>
<url>
<loc>https://atlas48.neocities.org/src/_tape/titlelookup</loc>
<lastmod>2023-33-22</lastmod>
</url>
<url>
<loc>https://atlas48.neocities.org/src/_tape/titlelookup.rs</loc>
<lastmod>2023-33-22</lastmod>
</url>
<url>
<loc>https://atlas48.neocities.org/src/_tape/lib.m4</loc>
<lastmod>2023-12-21</lastmod>
</url>
<url>
<loc>https://atlas48.neocities.org/src/_tape/gensmap.sh</loc>
<lastmod>2023-56-01</lastmod>
</url>
<url>
<loc>https://atlas48.neocities.org/src/_tape/string.sh</loc>
<lastmod>2023-18-01</lastmod>
</url>
<url>
<loc>https://atlas48.neocities.org/style.css</loc>
<lastmod>2022-39-04</lastmod>
</url>
</urlset>

10
src/_tape/gensmap.sh Normal file → Executable file
View File

@ -1,12 +1,12 @@
function r {echo $@ >> sitemap.xml;}
function r { echo $@ >> sitemap.xml; }
pushd ../..
sed -i d sitemap.xml
r '<?xml version="1.0" encoding="UTF-8"?>'
w '<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">'
r '<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">'
for i in `find *`; do
w "<url>"
w "<loc>https://atlas48.neocities.org/$i</loc>"
w "<lastmod>$(date +"%Y-%M-%d" -r $i)</lastmod>"
r "<url>"
r "<loc>https://atlas48.neocities.org/$i</loc>"
r "<lastmod>$(date +"%Y-%M-%d" -r $i)</lastmod>"
r "</url>"
done
r "</urlset>"

View File

@ -1,4 +1,4 @@
dnl template.m4.html v1.0
dnl template.m4.html v1.2
dnl Part of the tape-and-string suite used to construct the website
include(LIB)dnl
<!DOCTYPE html>
@ -7,7 +7,7 @@ include(LIB)dnl
<style>
@include "style.css";
</style>
<title>ifdef(`TITLE',TITLE,`Untitled Atlas48 Archive Page')</title>
<title>TITLE</title>
</head>
<body>
include(`/dev/stdin')dnl Probably not a good idea, but whatever.

View File

@ -11,7 +11,7 @@ function tape {
*.org) org-ruby --translate html $1 ;;
*.md) comrak --gfm $1 ;;
*.html) cat $1 ;;
*) pandoc --cols 168 -t html $i || echo "Unable to render $i, unknown format" ;;
*) pandoc --cols 168 -t html $i || echo "Skipping $i, unknown format" ;;
esac
}
cd ..
@ -24,7 +24,7 @@ for i in ${files[@]}; do
else continue
fi
elif test -f $i; then
tape $i | m4 -DTITLE=`${prog[title]}` -DLIB=${prog[lib]} ${prog[m4]} > ../$i
tape $i | sed 's/^\s\{1,4\}//' | m4 -DTITLE="$(${prog[title]} $i)" -DLIB=${prog[lib]} ${prog[m4]} > ../${i%.*}.html
else
echo "Skipping $i, unknown file type"
fi