diff options
| author | Paul Buetow <paul@buetow.org> | 2024-09-16 23:15:19 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2024-09-16 23:15:19 +0300 |
| commit | 1877bf74243844310cf6cce295ec7cb38da396a5 (patch) | |
| tree | 691303bdbb5626545493b02ab03de31f27a270a0 | |
| parent | 22ce217673ec8a5eb4b2192a12a7a2d04d76c8a9 (diff) | |
add theme support
| -rw-r--r-- | extras/html/themes/business.conf | 8 | ||||
| -rw-r--r-- | extras/html/themes/future.conf | 9 | ||||
| -rwxr-xr-x | gemtexter | 4 | ||||
| -rw-r--r-- | gemtexter-paul.buetow.org.conf | 9 | ||||
| -rw-r--r-- | gemtexter.conf | 10 |
5 files changed, 23 insertions, 17 deletions
diff --git a/extras/html/themes/business.conf b/extras/html/themes/business.conf new file mode 100644 index 0000000..ea013b4 --- /dev/null +++ b/extras/html/themes/business.conf @@ -0,0 +1,8 @@ +declare -xr HTML_HEADER=./extras/html/header.html.part +declare -xr HTML_FOOTER=./extras/html/footer.html.part +declare -xr HTML_CSS_STYLE=./extras/html/style-business.css +declare -xr HTML_WEBFONT_TEXT=./extras/html/fonts/Lato/Lato-Regular.ttf +declare -xr HTML_WEBFONT_HEADING=./extras/html/fonts/Abril_Fatface/AbrilFatface-Regular.ttf +declare -xr HTML_WEBFONT_CODE=./extras/html/fonts/hack/Hack-Regular.ttf +declare -xr HTML_WEBFONT_HANDNOTES=./extras/html/fonts/khand/khand.ttf +declare -xr HTML_WEBFONT_TYPEWRITER=./extras/html/fonts/zai-aeg-mignon-typewriter-1924/zai_AEGMignonTypewriter1924.ttf diff --git a/extras/html/themes/future.conf b/extras/html/themes/future.conf new file mode 100644 index 0000000..0e6c953 --- /dev/null +++ b/extras/html/themes/future.conf @@ -0,0 +1,9 @@ +declare -xr HTML_HEADER=./extras/html/header.html.part +declare -xr HTML_FOOTER=./extras/html/footer.html.part +declare -xr HTML_CSS_STYLE=./extras/html/style.css +declare -xr HTML_WEBFONT_TEXT=./extras/html/fonts/Lato/Lato-Regular.ttf +declare -xr HTML_WEBFONT_HEADING=./extras/html/fonts/Abril_Fatface/AbrilFatface-Regular.ttf +declare -xr HTML_WEBFONT_CODE=./extras/html/fonts/hack/Hack-Regular.ttf +declare -xr HTML_WEBFONT_HANDNOTES=./extras/html/fonts/khand/khand.ttf +declare -xr HTML_WEBFONT_TYPEWRITER=./extras/html/fonts/zai-aeg-mignon-typewriter-1924/zai_AEGMignonTypewriter1924.ttf +declare -xr SOURCE_HIGHLIGHT_CSS=./extras/html/source-highlight-styles/sh_vampire.css @@ -41,6 +41,10 @@ else source ./gemtexter.conf fi +if [ -f "$HTML_THEME_CONFIG" ]; then + source "$HTML_THEME_CONFIG" +fi + source ./lib/assert.source.sh source ./lib/atomfeed.source.sh source ./lib/gemfeed.source.sh diff --git a/gemtexter-paul.buetow.org.conf b/gemtexter-paul.buetow.org.conf index 29875a2..8725471 100644 --- a/gemtexter-paul.buetow.org.conf +++ b/gemtexter-paul.buetow.org.conf @@ -7,12 +7,5 @@ declare -x MASTODON_URI='https://fosstodon.org/@snonux' declare -xr IMAGE_PATTERN='\.(jpg|png|gif)$' declare -xr ATOM_MAX_ENTRIES=42 declare -xr CONTENT_BASE_DIR=../paul.buetow.org-content -declare -xr HTML_HEADER=./extras/html/header.html.part -declare -xr HTML_FOOTER=./extras/html/footer.html.part -declare -xr HTML_CSS_STYLE=./extras/html/style-business.css -declare -xr HTML_WEBFONT_TEXT=./extras/html/fonts/Lato/Lato-Regular.ttf -declare -xr HTML_WEBFONT_HEADING=./extras/html/fonts/Abril_Fatface/AbrilFatface-Regular.ttf -declare -xr HTML_WEBFONT_CODE=./extras/html/fonts/hack/Hack-Regular.ttf -declare -xr HTML_WEBFONT_HANDNOTES=./extras/html/fonts/khand/khand.ttf -declare -xr HTML_WEBFONT_TYPEWRITER=./extras/html/fonts/zai-aeg-mignon-typewriter-1924/zai_AEGMignonTypewriter1924.ttf +declare -xr HTML_THEME_CONFIG=./extras/html/themes/business.conf declare -xr POST_PUBLISH_HOOK=./post_publish_hook.sh diff --git a/gemtexter.conf b/gemtexter.conf index 80538b6..ffd7b9e 100644 --- a/gemtexter.conf +++ b/gemtexter.conf @@ -7,12 +7,4 @@ declare -xr ATOM_MAX_ENTRIES=42 declare -xr CONTENT_BASE_DIR=../foo.zone-content declare -xr PRE_GENERATE_HOOK=./pre_generate_hook.sh declare -xr POST_PUBLISH_HOOK=./post_publish_hook.sh -declare -xr HTML_HEADER=./extras/html/header.html.part -declare -xr HTML_FOOTER=./extras/html/footer.html.part -declare -xr HTML_CSS_STYLE=./extras/html/style.css -declare -xr HTML_WEBFONT_TEXT=./extras/html/fonts/Lato/Lato-Regular.ttf -declare -xr HTML_WEBFONT_HEADING=./extras/html/fonts/Abril_Fatface/AbrilFatface-Regular.ttf -declare -xr HTML_WEBFONT_CODE=./extras/html/fonts/hack/Hack-Regular.ttf -declare -xr HTML_WEBFONT_HANDNOTES=./extras/html/fonts/khand/khand.ttf -declare -xr HTML_WEBFONT_TYPEWRITER=./extras/html/fonts/zai-aeg-mignon-typewriter-1924/zai_AEGMignonTypewriter1924.ttf -declare -xr SOURCE_HIGHLIGHT_CSS=./extras/html/source-highlight-styles/sh_vampire.css +declare -xr HTML_THEME_CONFIG=./extras/html/themes/future.conf |
