general site work

This commit is contained in:
Atlas Cove 2022-10-04 22:42:16 +01:00
parent b2aa241b7a
commit 1d55329a21
5 changed files with 11 additions and 8 deletions

View File

@ -1,4 +1,5 @@
Sitemap: https://atlas48.neocities.org/sitemap.xml Sitemap: https://atlas48.neocities.org/sitemap.xml
User-Agent: * User-Agent: *
Disallow: / Allow: /
Crawl-delay: 1

4
src/lib.m4 Normal file
View File

@ -0,0 +1,4 @@
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>')
divert

View File

@ -1,5 +1,6 @@
dnl template.m4.html v1.0 dnl template.m4.html v1.0
dnl Part of the tape-and-string suite used to construct the website dnl Part of the tape-and-string suite used to construct the website
include(`lib.m4')dnl
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
@ -9,6 +10,6 @@ dnl Part of the tape-and-string suite used to construct the website
<title>ifdef(`TITLE',TITLE,`Untitled Atlas48 Archive Page')</title> <title>ifdef(`TITLE',TITLE,`Untitled Atlas48 Archive Page')</title>
</head> </head>
<body> <body>
include(`tmp.html') include(`/dev/stdin')dnl Probably not a good idea, but whatever.
</body> </body>
</html> </html>

View File

@ -1,7 +1,6 @@
#!/bin/bash #!/bin/bash
# render.sh: part of the tape-and-string framework.
declare -A title=([not_found]="404 - Page Not Found" [index]="Atlas48's Archives") declare -A title=([not_found]="404 - Page Not Found" [index]="Atlas48's Archives")
for i in *.txti; do for i in *.txti; do
flatiron <$i> tmp.html flatiron < $i | m4 -DTITLE=${title[${i##.html}]} main.html.m4 > ../${i/txti/html}
m4 -DTITLE=${title[${i##.html}]} template.html.m4 > ../${i/txti/html}
rm tmp.html
done done

View File

@ -1,5 +1,3 @@
body { body {
background-color: white; font-family: sans-serif;
color: black;
font-family: Verdana;
} }