fusch.online

git / lists / casts

git.fusch.online/planner

Generate static pages from a list of links
git clone git://git.fusch.online/planner
Log / Files / Readme / Issues

commit 380263f297f2f9b6cfacf68898b9ee57a2badf3f
parent ead6057bfdaea752aff14091909c8d460638f39f
Author: tutti <tutti@fusch.online>
Date:   Wed, 19 Jun 2019 18:39:59 +0200

ignore unused template variables

Diffstat:
Mplanner | 12++++++++----
Mstyle.css | 2+-
2 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/planner b/planner @@ -8,6 +8,7 @@ dateformat="--rfc-3339=seconds" builddate=$(date "$dateformat") baseurl=${BASEURL:-example.com} sitetitle="planner" +config=./planner.config print_html_head() { @@ -23,13 +24,13 @@ print_html_head() { <div class="planner"> EOF - sed -e "s/{{{ tag }}}/<p>$1<\/p>/g" \ - -e "s/{{{ head }}}/<a href=\".\/\"><h2>$sitetitle<\/h2><\/a>/g" ./header.html + sed -e "s/{{{ tag }}}/$1/g" \ + -e "s/{{{ head }}}/planner/g" ./header.html } print_html_tail() { sed -e "s/{{{ rss }}}/.\/atom.xml/" -e "s/{{{ tags }}}/.\/tags.html/" \ - ./footer.html + ./footer.html | grep -v "{{{ .* }}}" cat << EOF </div> @@ -78,7 +79,8 @@ print_atom_link() { <link href="$2"></link> <id>$2</id> <author> - <name>tutti</name> + <name>$PLANNER_NAME</name> + <email>$PLANNER_EMAIL</email> </author> <published>$3</published> <updated>$3</updated> @@ -96,6 +98,8 @@ mkdir -p $site touch ./db.tsv rm $site/*.html $site/atom.xml +[[ -f $config ]] && source "$config" + [[ $1 == -n ]] && { offline=true shift diff --git a/style.css b/style.css @@ -5,7 +5,7 @@ body { margin-top: 8em; margin-bottom: 4em; font-family: Tahoma, Verdana, Arial, sans-serif; - text-align: justify; + text-align: center; } h1 {