From 4fb46cd35fcd929136ae44e4f31f489c361b5282 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Mon, 7 Dec 2020 03:00:25 +0100 Subject: Added static files, rebuild on save, new style sheet --- generate | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'generate') diff --git a/generate b/generate index 6bb22fb..f1f3378 100755 --- a/generate +++ b/generate @@ -30,11 +30,11 @@ base_template_link () { blog_path=blog mkdir -p "$blog_path" base_template < index.template.html | - base_template_link 'favicon.png' | - base_template_link 'style.css' > index.html + base_template_link 'static/img/favicon.png' | + base_template_link 'static/css/style.css' > index.html base_template < school.template.html | - base_template_link 'favicon.png' | - base_template_link 'style.css' > school.html + base_template_link 'static/img/favicon.png' | + base_template_link 'static/css/style.css' > school.html cp rss.template.xml rss.xml @@ -45,8 +45,8 @@ do pandoc -f markdown -t html < "$post_path" | base_template | - base_template_link '../favicon.png' | - base_template_link '../style.css' > "$post_dst_path" + base_template_link '../static/img/favicon.png' | + base_template_link '../static/css/style.css' > "$post_dst_path" # Add blog artcle link to the index.html title=$(grep '^# .*$' -m 1 "$post_path" | cut -c 2-) @@ -74,8 +74,8 @@ do title=$(basename "$util_path" | tr '_' ' ') sed '$ a ' < "$util_path/index.template.html" | base_template | - base_template_link '../../favicon.png' | - base_template_link '../../style.css' | + base_template_link '../../static/img/favicon.png' | + base_template_link '../../static/css/style.css' | base_template_link 'style.css' > "$util_path/index.html" sed -i'' "// a\
  • $title
  • " index.html -- cgit