From 19f68752e05ea7c53076f7c59fb5b713f7ea7c5b Mon Sep 17 00:00:00 2001 From: Atlas Cove <5618106+Atlas48@users.noreply.github.com> Date: Wed, 1 Feb 2023 21:08:28 +0000 Subject: [PATCH] tape & string works! --- index.html | 13 ++-- not_found.html | 9 +-- sitemap.xml | 152 ++++++++++++++++++++++++++++++++++++++++- src/_tape/gensmap.sh | 10 +-- src/_tape/main.html.m4 | 4 +- src/_tape/render.sh | 4 +- 6 files changed, 173 insertions(+), 19 deletions(-) mode change 100644 => 100755 src/_tape/gensmap.sh diff --git a/index.html b/index.html index 6c69d81..30ac6c1 100644 --- a/index.html +++ b/index.html @@ -1,18 +1,21 @@ + - +Atlas48's Archives

Welcome to the Atlas48 Archives!

-

The First Banner

+

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.

-

TODO
- find a way to render the org-mode files
-
maybe make an automated sitemap renderer?

+

TODO

+ diff --git a/not_found.html b/not_found.html index 824361b..2416e87 100644 --- a/not_found.html +++ b/not_found.html @@ -1,17 +1,18 @@ + - +Atlas48's Archives -

Home

-


+

HomeBlog

+

404

Page not found.

The requested page could not be found.

-


+
diff --git a/sitemap.xml b/sitemap.xml index 870b7dd..96dc635 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -1,9 +1,159 @@ -https://atlas48.neocities.org/ +https://atlas48.neocities.org/dnd +2023-52-01 + + +https://atlas48.neocities.org/dnd/minions.org +2023-43-01 + + +https://atlas48.neocities.org/dnd/template.org +2023-43-01 + + +https://atlas48.neocities.org/dnd/xaviard.html +2023-54-01 + + +https://atlas48.neocities.org/dnd/villains.html +2023-54-01 + + +https://atlas48.neocities.org/dnd/villains.org +2023-43-01 + + +https://atlas48.neocities.org/dnd/template.html +2023-54-01 + + +https://atlas48.neocities.org/dnd/minions.html +2023-53-01 + + +https://atlas48.neocities.org/dnd/xaviard.org +2023-43-01 + + +https://atlas48.neocities.org/img +2022-49-25 + + +https://atlas48.neocities.org/img/av.png +2021-00-07 + + +https://atlas48.neocities.org/img/ucbanner.gif +2021-01-07 + + +https://atlas48.neocities.org/index.html +2023-54-01 + + +https://atlas48.neocities.org/index.txti +2023-43-01 + + +https://atlas48.neocities.org/js +2022-14-24 + + +https://atlas48.neocities.org/neocities.png +2021-36-20 https://atlas48.neocities.org/not_found.html +2023-53-01 + + +https://atlas48.neocities.org/not_found.txti +2023-43-01 + + +https://atlas48.neocities.org/robots.txt +2022-42-04 + + +https://atlas48.neocities.org/sitemap.xml +2023-56-01 + + +https://atlas48.neocities.org/src +2023-27-22 + + +https://atlas48.neocities.org/src/not_found.txti +2022-36-24 + + +https://atlas48.neocities.org/src/dnd +2023-39-22 + + +https://atlas48.neocities.org/src/dnd/minions.org +2022-12-15 + + +https://atlas48.neocities.org/src/dnd/template.org +2022-01-15 + + +https://atlas48.neocities.org/src/dnd/villains.org +2022-12-15 + + +https://atlas48.neocities.org/src/dnd/xaviard.org +2022-02-15 + + +https://atlas48.neocities.org/src/index.txti +2022-06-15 + + +https://atlas48.neocities.org/src/_tape +2023-56-01 + + +https://atlas48.neocities.org/src/_tape/.editorconfig +2023-46-21 + + +https://atlas48.neocities.org/src/_tape/render.sh +2023-53-01 + + +https://atlas48.neocities.org/src/_tape/main.html.m4 +2023-18-01 + + +https://atlas48.neocities.org/src/_tape/push.sh +2023-50-21 + + +https://atlas48.neocities.org/src/_tape/titlelookup +2023-33-22 + + +https://atlas48.neocities.org/src/_tape/titlelookup.rs +2023-33-22 + + +https://atlas48.neocities.org/src/_tape/lib.m4 +2023-12-21 + + +https://atlas48.neocities.org/src/_tape/gensmap.sh +2023-56-01 + + +https://atlas48.neocities.org/src/_tape/string.sh +2023-18-01 + + +https://atlas48.neocities.org/style.css +2022-39-04 diff --git a/src/_tape/gensmap.sh b/src/_tape/gensmap.sh old mode 100644 new mode 100755 index a9633eb..3abe7cb --- a/src/_tape/gensmap.sh +++ b/src/_tape/gensmap.sh @@ -1,12 +1,12 @@ -function r {echo $@ >> sitemap.xml;} +function r { echo $@ >> sitemap.xml; } pushd ../.. sed -i d sitemap.xml r '' -w '' +r '' for i in `find *`; do -w "" -w "https://atlas48.neocities.org/$i" -w "$(date +"%Y-%M-%d" -r $i)" +r "" +r "https://atlas48.neocities.org/$i" +r "$(date +"%Y-%M-%d" -r $i)" r "" done r "" diff --git a/src/_tape/main.html.m4 b/src/_tape/main.html.m4 index d1a18a9..b70b66b 100644 --- a/src/_tape/main.html.m4 +++ b/src/_tape/main.html.m4 @@ -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 @@ -7,7 +7,7 @@ include(LIB)dnl -ifdef(`TITLE',TITLE,`Untitled Atlas48 Archive Page') +TITLE include(`/dev/stdin')dnl Probably not a good idea, but whatever. diff --git a/src/_tape/render.sh b/src/_tape/render.sh index e5d231f..be1bfac 100755 --- a/src/_tape/render.sh +++ b/src/_tape/render.sh @@ -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