From 48cf0b2961baa81b36f32691cd6449549e9e9a6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?tr=C3=A9meur?= Date: Sat, 10 Jun 2023 08:00:02 +0100 Subject: [PATCH] Add local CSS option + emacs badge --- .gitignore | 2 ++ build.sh | 2 ++ headerfooter.py | 13 ++++++++++--- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 7c1a0ac..5145293 100644 --- a/.gitignore +++ b/.gitignore @@ -14,6 +14,8 @@ build/secret/*.pdf build/secret/*.epub build/secret/*.gif build/secret/*.png +build/archive.css +build/emacs.jpg originalsmeta/* !originalsmeta/__init__.py !originalsmeta/template.py diff --git a/build.sh b/build.sh index e0835c1..b49f108 100755 --- a/build.sh +++ b/build.sh @@ -4,4 +4,6 @@ python3 generate.py +touch build/comments/.gitkeep + rclone copy build praze:/home/public/fic -P diff --git a/headerfooter.py b/headerfooter.py index ff78b24..eb8d1d7 100644 --- a/headerfooter.py +++ b/headerfooter.py @@ -2,8 +2,10 @@ def headerwrite(output,title,headerone,desc,main=False,local=False): header = open(output, "a") header.write("\n\n\n\n\n\n\n\n\n" + title + "\n\n\n
\n

" + headerone + "

\n" + desc + "\n") + header.write("/home/mdd/Documents/drive/proj/fic-archive/build/") + else: + header.write("/fic/") + header.write("archive.css\">\n\n\n\n" + title + "\n\n\n
\n

" + headerone + "

\n" + desc + "\n") if not main: header.write("

\nmain page\n\n

\n") - footer.write("
\n\n") + footer.write("
\n\n") footer.close()