hugosoucycc

[ARCHIVED] Another old source code of <hugo.soucy.cc>.
Log | Files | Refs | Submodules

commit c709a308455640fd5d285fc613ac6d91c2b6e32a
parent fe57164ab21320ff92de9bee92b5fdf189b9518b
Author: Hugo Soucy <hugo.soucy@savoirfairelinux.com>
Date:   Sun, 26 Feb 2017 08:10:32 -0500

Split configuration file in two files.

Diffstat:
Aconfig/app.cfg | 52++++++++++++++++++++++++++++++++++++++++++++++++++++
Dconfig/config | 68--------------------------------------------------------------------
Aconfig/site.cfg | 18++++++++++++++++++
Mfakestache | 5+++--
4 files changed, 73 insertions(+), 70 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/prod + +# 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,68 +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="hugo.soucy.cc" -export SITE_URL="http://${SITE_DOMAINNAME}" -export SITE_URL_DEV="http://localhost:8181" -export SITE_LANGUAGE="fr" - -# 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/prod - -# 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="Développeur Web frontend ayant plus de 10 ans d'expérience dans le milieu des technologies de l'information. Il habite dans le quartier Limoilou à Québec." -export SITE_GENERATOR="FakeStache SSG" -export SITE_AUTHOR="Hugo Soucy" -export SITE_AUTHOR_TITLE="Développeur Web frontend" -export SITE_AUTHOR_EMAIL="hugo@soucy.cc" -export SITE_AUTHOR_PHONE="581-996-6481" -export SITE_AUTHOR_LOCALITY="Québec" -export SITE_AUTHOR_REGION="Qc" diff --git a/config/site.cfg b/config/site.cfg @@ -0,0 +1,18 @@ +#!/bin/bash +# FakeStache SSG configuration file + +# Site configuration file +export SITE_DOMAINNAME="hugo.soucy.cc" +export SITE_URL="http://${SITE_DOMAINNAME}" +export SITE_URL_DEV="http://localhost:8181" +export SITE_LANGUAGE="fr" + +# Metas +export SITE_DESCRIPTION="Développeur Web frontend ayant plus de 10 ans d'expérience dans le milieu des technologies de l'information. Il habite dans le quartier Limoilou à Québec." +export SITE_GENERATOR="FakeStache SSG" +export SITE_AUTHOR="Hugo Soucy" +export SITE_AUTHOR_TITLE="Développeur Web frontend" +export SITE_AUTHOR_EMAIL="hugo@soucy.cc" +export SITE_AUTHOR_PHONE="581-996-6481" +export SITE_AUTHOR_LOCALITY="Québec" +export SITE_AUTHOR_REGION="Qc" diff --git a/fakestache b/fakestache @@ -8,8 +8,9 @@ # * Pandoc - Make sure it's installed on your machine : `$ pandoc -v`. # * Mustache - Is already includes in pantash : `lib/mo/`. -# Include the main configuration file -. config/config +# Include the main configuration files +. config/site.cfg +. config/app.cfg # Include mustache for bash . lib/mo/mo