hugosoucycc

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

commit 08d051c47caaa7beeeb0d33816336b9341d42d00
parent 1db455e17a564e505a630c025943efe69a3179ec
Author: Hugo Soucy <hugo.soucy@savoirfairelinux.com>
Date:   Sun,  6 Nov 2016 19:37:03 -0500

Delete the panstash script to use the fakestache one

Diffstat:
Dpanstash | 69---------------------------------------------------------------------
1 file changed, 0 insertions(+), 69 deletions(-)

diff --git a/panstash b/panstash @@ -1,69 +0,0 @@ -#!/bin/bash -# -# PANSTASH - Yep! An Other Static Website Generator! -# (Pandoc + Mustache + Bash) -# - -# Dependencies : -# * Pandoc - Make sure it's installed on your machine : `$ pandoc -v`. -# * Mustache - Is already includes in pantash : `lib/mo/`. - -# Maybe i should call it «FAKESTASH» !? «FAKESTASH SSG». - -# Include the main configuration file -. config/config.sh - -# Include mustache for bash -. lib/mo/mo - -# Include all the main functions -. functions/parse_yaml -. functions/get-archetypes -. functions/build-pandoc-templates -. functions/get-pandoc-templates -. functions/move-html-to-publichtml -. functions/create-html-pages -. functions/create-html-sections -. functions/get-static-files -. functions/clean-content-folder - -get_archetypes - -if [[ -n "$1" ]] && [[ " ${archetypes[*]} " == *" $1 "* ]] && [[ -n "$2" ]]; then - # Should be more dynamic with regex. - # Don't suppose of the file format. - archetype_title="$2" - archetype_date=$NOW_DATE - archetype_datetime=$NOW_DATETIME - - remove_whitespace=${archetype_title// /-} - remove_quote=${remove_whitespace//\'/-} - remove_capitalletter=${remove_quote,,} - - archetype_filename=${remove_capitalletter}.md - - mo $ARCHETYPES_PATH/$1.md > $CONTENT_PATH/$1/"$archetype_filename" - - echo "- The file '$CONTENT_PATH/$1/$archetype_filename' hab been created." -elif hash pandoc 2>/dev/null; then - # Ok Pandoc is here. - # Execute main functions - - [[ "$1" == "--reset" ]] || \ - ([[ "$1" == "dev" ]] && [[ "$2" == "--reset" ]]) && \ - reset=true || reset=false - - build_pandoc_templates - create_html_pages "$reset" - create_html_sections - get_static_files - clean_content_folder - - echo "- Your New Website Is Ready Here : $PUBLICHTML_PATH/ . Thanks Pandoc!!" - exit 0 -else - echo "- Sorry But You must Install *Pandoc* For Using *Panstash*." - echo "- Please Visit <http://pandoc.org/installing.html>." - - exit 1 -fi