From 646748359a60dc9a71fa67c21e6ce1d4cacf9dce Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Sat, 14 Nov 2015 13:51:55 -0500 Subject: Initial import. --- publish.sh | 17 +++++++++++++++++ static/header-ext.html | 2 ++ static/main.css | 41 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 60 insertions(+) create mode 100755 publish.sh create mode 100644 static/header-ext.html create mode 100644 static/main.css diff --git a/publish.sh b/publish.sh new file mode 100755 index 0000000..674403d --- /dev/null +++ b/publish.sh @@ -0,0 +1,17 @@ +#!/bin/bash +set -x + +(cd input && git pull) + +INPUTS=$(find input -name '*.org' -exec grep -l "#+PUBLISH" {} \;) +readonly filter='s/#\+PUBLISH//g; ;s/\[([^\]]*)\.org\]/[$1.html]/g' + +mkdir -p www +cp static/*.css www + +for input in ${INPUTS}; do + output="www${input#input}" + output="${output%org}html" + mkdir -p $(dirname "$output") + perl -pe "$filter" "$input" | pandoc -f org -s -t html5 -H static/header-ext.html -o "$output" +done diff --git a/static/header-ext.html b/static/header-ext.html new file mode 100644 index 0000000..6f12631 --- /dev/null +++ b/static/header-ext.html @@ -0,0 +1,2 @@ + + diff --git a/static/main.css b/static/main.css new file mode 100644 index 0000000..adb6b49 --- /dev/null +++ b/static/main.css @@ -0,0 +1,41 @@ +/* +.base00-background { background-color: #000000; } +.base01-background { background-color: #303030; } +.base02-background { background-color: #505050; } +.base03-background { background-color: #b0b0b0; } +.base04-background { background-color: #d0d0d0; } +.base05-background { background-color: #e0e0e0; } +.base06-background { background-color: #f5f5f5; } +.base07-background { background-color: #ffffff; } +.base08-background { background-color: #fb0120; } +.base09-background { background-color: #fc6d24; } +.base0A-background { background-color: #fda331; } +.base0B-background { background-color: #a1c659; } +.base0C-background { background-color: #76c7b7; } +.base0D-background { background-color: #6fb3d2; } +.base0E-background { background-color: #d381c3; } +.base0F-background { background-color: #be643c; } + +.base00 { color: #000000; } +.base01 { color: #303030; } +.base02 { color: #505050; } +.base03 { color: #b0b0b0; } +.base04 { color: #d0d0d0; } +.base05 { color: #e0e0e0; } +.base06 { color: #f5f5f5; } +.base07 { color: #ffffff; } +.base08 { color: #fb0120; } +.base09 { color: #fc6d24; } +.base0A { color: #fda331; } +.base0B { color: #a1c659; } +.base0C { color: #76c7b7; } +.base0D { color: #6fb3d2; } +.base0E { color: #d381c3; } +.base0F { color: #be643c; } +*/ + +body, p, h1 { + background-color: #ffffff; + color: #303030; + font-family: 'Noto Sans', sans-serif; +} \ No newline at end of file -- cgit v1.2.3