General Update

This commit is contained in:
Atlas Cove 2023-02-05 11:47:27 +00:00
parent 19f68752e0
commit 5ac3bc048b
8 changed files with 42 additions and 7 deletions

2
css/main.css Normal file
View File

@ -0,0 +1,2 @@
body {
font-family: sans-serif; }

View File

@ -3,11 +3,14 @@
<html>
<head>
<style>
@include "style.css";
@include "/css/main.css";
</style>
<title>Atlas48's Archives</title>
</head>
<body>
<div class="header">
<a href="/">/</a>
</div>
<p><em>Welcome to the Atlas48 Archives!</em></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>

View File

@ -3,11 +3,14 @@
<html>
<head>
<style>
@include "style.css";
@include "/css/main.css";
</style>
<title>Atlas48's Archives</title>
</head>
<body>
<div class="header">
<a href="/">/</a>
</div>
<p><a href="https://atlas48.neocities.org// ">Home</a><a href="https://atlas48.sdf.org/">Blog</a></p>
<hr />
<h1>404</h1>

View File

@ -1,4 +1,5 @@
divert(-1)
# extra macros for site structure
define(`ytv',`<iframe width="560" height="315" src="$1" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>')
define(`ytv',`<iframe width="ifdef(`$3',$1,560)" height="ifdef(`$3',$3,315)" src="$1" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>')
define(`wrap',<$1>$2</$1>)
divert

View File

@ -5,11 +5,14 @@ include(LIB)dnl
<html>
<head>
<style>
@include "style.css";
@include "/css/main.css";
</style>
<title>TITLE</title>
</head>
<body>
<div class="header">
<a href="/">/</a>
</div>
include(`/dev/stdin')dnl Probably not a good idea, but whatever.
</body>
</html>

5
src/_tape/rcss.sh Executable file
View File

@ -0,0 +1,5 @@
#!/usr/bin/bash
for i in $@; do
echo $i
sassc $i ../${i%.*}
done

View File

@ -14,6 +14,19 @@ function tape {
*) pandoc --cols 168 -t html $i || echo "Skipping $i, unknown format" ;;
esac
}
function yn {
while true; do
read -p "$* [y/n]:" yn
case $yn in
[Yy]*) return 0;;
[Nn]*)
echo "Aborted."
return 1;;
*) echo "Please answer Yes or No.";;
esac
done
}
cd ..
files=(`find -not -path './_*'`)
for i in ${files[@]}; do
@ -24,8 +37,16 @@ for i in ${files[@]}; do
else continue
fi
elif test -f $i; then
if ! grep -q '.s[ac]ss' "$i"; then
sass=+($i)
continue
fi
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
done
if ! ( test -z ${css[@]} ) && yn "Run rcss.sh?"; then
_tape/rcss.sh ${css[@]}
fi

View File

@ -1,3 +0,0 @@
body {
font-family: sans-serif;
}