fakestache-ssg

[Archived] A static site generator in Bash 4.
Log | Files | Refs | Submodules | README

commit 67611ec3fa659f68c7b2b09b6255896d681f2159
parent 6bdf22d72d9d8954ec2f14c7d04dfe3006d9044d
Author: Hugo Soucy <hugo.soucy@savoirfairelinux.com>
Date:   Fri, 10 Mar 2017 20:05:05 -0500

Split the config file in two files

Diffstat:
Aconfig/app.cfg | 52++++++++++++++++++++++++++++++++++++++++++++++++++++
Dconfig/config | 69---------------------------------------------------------------------
Aconfig/site.cfg | 19+++++++++++++++++++
3 files changed, 71 insertions(+), 69 deletions(-)

diff --git a/config/app.cfg b/config/app.cfg @@ -0,0 +1,52 @@ +#!/bin/bash +# FakeStache SSG configuration file + +export NOW_DATE="$(date +%Y-%m-%d)" +export NOW_DATETIME="$(date +%H:%M:%S)" + +# Flat Database Name +export DB=fakestache.db + +# Templates folders +export MUSTACHE=templates/mustache +export PANDOC=templates/pandoc + +# Archetypes folder (markdown files) +export ARCHETYPES=archetypes + +# Content folder (markdown files) +export CONTENT=content + +# Assets folder +export ASSETS=static + +# Public HTML folder +export PUBLICHTML=public_html + +# PATHS +# To the current absolute path +export FAKESTACHE_PATH=$(pwd) + +# To the mustache templates +export TPL_MUSTACHE_PATH=$FAKESTACHE_PATH/$MUSTACHE + +# To the pandoc templates +export TPL_PANDOC_PATH=$FAKESTACHE_PATH/$PANDOC + +# To the archetypes files +export ARCHETYPES_PATH=$FAKESTACHE_PATH/$ARCHETYPES + +# To the content files +export CONTENT_PATH=$FAKESTACHE_PATH/$CONTENT + +# To the assets files +export ASSETS_PATH=$FAKESTACHE_PATH/$ASSETS + +# To the public_html folder +export PUBLICHTML_PATH=$FAKESTACHE_PATH/$PUBLICHTML + +# To the temporary folder +export TMP_PATH="/tmp/fakestache" + +# Base URL +export BASE_URL=$SITE_URL diff --git a/config/config b/config/config @@ -1,69 +0,0 @@ -#!/bin/bash -# FakeStache SSG configuration file - -export NOW_DATE="$(date +%Y-%m-%d)" -export NOW_DATETIME="$(date +%H:%M:%S)" - -# Flat Database Name -export DB=fakestache.db - -# Site configuration file -export SITE_DOMAINNAME="john.doe.tld" -export SITE_URL="http://${SITE_DOMAINNAME}" -export SITE_URL_DEV="http://localhost:8181" -export SITE_LANGUAGE="en" - -# Templates folders -export MUSTACHE=templates/mustache -export PANDOC=templates/pandoc - -# Archetypes folder (markdown files) -export ARCHETYPES=archetypes - -# Content folder (markdown files) -export CONTENT=content - -# Assets folder -export ASSETS=static - -# Public HTML folder -export PUBLICHTML=public_html - -# PATHS -# To the current absolute path -export FAKESTACHE_PATH=$(pwd) - -# To the mustache templates -export TPL_MUSTACHE_PATH=$FAKESTACHE_PATH/$MUSTACHE - -# To the pandoc templates -export TPL_PANDOC_PATH=$FAKESTACHE_PATH/$PANDOC - -# To the archetypes files -export ARCHETYPES_PATH=$FAKESTACHE_PATH/$ARCHETYPES - -# To the content files -export CONTENT_PATH=$FAKESTACHE_PATH/$CONTENT - -# To the assets files -export ASSETS_PATH=$FAKESTACHE_PATH/$ASSETS - -# To the public_html folder -export PUBLICHTML_PATH=$FAKESTACHE_PATH/$PUBLICHTML - -# To the temporary folder -export TMP_PATH="/tmp/fakestache" - -# Base URL -export BASE_URL=$SITE_URL - -# Metas -export SITE_DESCRIPTION="Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec hendrerit tempor tellus. Donec pretium posuere tellus. Proin quam nisl, tincidunt et, mattis eget, convallis nec, purus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nulla posuere. Donec vitae dolor. Nullam tristique diam non turpis. Cras placerat accumsan nulla. Nullam rutrum. Nam vestibulum accumsan nisl." -export SITE_GENERATOR="FakeStache" - -export SITE_AUTHOR="John Doe" -export SITE_AUTHOR_TITLE="Web developper" -export SITE_AUTHOR_EMAIL="john@doe.tld" -export SITE_AUTHOR_PHONE="418-555-5555" -export SITE_AUTHOR_LOCALITY="Quebec city" -export SITE_AUTHOR_REGION="Qc" diff --git a/config/site.cfg b/config/site.cfg @@ -0,0 +1,19 @@ +#!/bin/bash +# FakeStache SSG configuration file + +# Site configuration file +export SITE_DOMAINNAME="john.doe.tld" +export SITE_URL="http://${SITE_DOMAINNAME}" +export SITE_URL_DEV="http://localhost:8181" +export SITE_LANGUAGE="en" + +# Metas +export SITE_DESCRIPTION="Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec hendrerit tempor tellus. Donec pretium posuere tellus. Proin quam nisl, tincidunt et, mattis eget, convallis nec, purus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nulla posuere. Donec vitae dolor. Nullam tristique diam non turpis. Cras placerat accumsan nulla. Nullam rutrum. Nam vestibulum accumsan nisl." +export SITE_GENERATOR="FakeStache" + +export SITE_AUTHOR="John Doe" +export SITE_AUTHOR_TITLE="Web developper" +export SITE_AUTHOR_EMAIL="john@doe.tld" +export SITE_AUTHOR_PHONE="418-555-5555" +export SITE_AUTHOR_LOCALITY="Quebec city" +export SITE_AUTHOR_REGION="Qc"