about summary refs log tree commit diff stats
path: root/mynah
diff options
context:
space:
mode:
Diffstat (limited to 'mynah')
-rwxr-xr-xmynah8
1 files changed, 4 insertions, 4 deletions
diff --git a/mynah b/mynah
index 3ae37c1..96a652a 100755
--- a/mynah
+++ b/mynah
@@ -15,6 +15,7 @@ fi
 
 SITENAME="wiki"
 SITEURL="https://elioat.tilde.institute/wiki"
+SITESTYLES="$SITEURL"/styles.css
 SITEDESCRIPTION="a little wiki"
 if [[ -f updated ]]; then
    LASTUPDATE=$(<updated)
@@ -35,17 +36,16 @@ RSSHEADER='<?xml version="1.0" encoding="UTF-8"?>
 RSSEND='</channel></rss>'
 
 build_logs() {
-    pandoc -c https://elioat.tilde.institute/wiki/styles.css -s changelog.md -o public/changelog.html
+    pandoc -c "$SITESTYLES" -s --metadata title="changelog" changelog.md -o public/changelog.html
     cd content
     rm ../archive.md
-    echo -e "# Archive\n" > ../archive.md
     for file in *;
     do
         archive_entry="- [${file%.*}](${SITEURL}/${file%.*}.html)"
         echo -e "$archive_entry" >> ../archive.md
     done
     cd ..
-    pandoc -c https://elioat.tilde.institute/wiki/styles.css -s archive.md -o public/archive.html
+    pandoc -c "$SITESTYLES" -s --metadata title="archive" archive.md -o public/archive.html
 }
 
 build() {
@@ -64,7 +64,7 @@ build() {
             (( i++ ))
             updated_at="- [${file%.*}](${SITEURL}/${file%.*}.html), ${RFC822}"
             echo -e "$updated_at\n$(cat ../changelog.md)" > ../changelog.md
-            pandoc -c https://elioat.tilde.institute/wiki/styles.css -s "${file}" -o ../public/"${file%.*}".html
+            pandoc -c "$SITESTYLES" -s "${file}" -o ../public/"${file%.*}".html
             rss_entry='<item>
 <title>
 <![CDATA[ the page "'${file%.*}'" was updated! ]]>