hugosoucycc

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

commit 80016cce97c8e2759bc0257bee8a0d7d9b04d87d
parent f73e10fcdca177e1f6a07b0085beb796d16a4854
Author: Hugo Soucy <hugo@soucy.cc>
Date:   Tue, 12 Sep 2017 09:49:13 -0400

Remove unused function files

Diffstat:
Dfunctions/build-pandoc-templates | 20--------------------
Dfunctions/get-pandoc-templates | 13-------------
2 files changed, 0 insertions(+), 33 deletions(-)

diff --git a/functions/build-pandoc-templates b/functions/build-pandoc-templates @@ -1,20 +0,0 @@ -#!/usr/bin/env bash - -# Convert Mustache templates into Pandoc templates -build_pandoc_templates () { - echo "- Convert Mustache templates into Pandoc templates" - - # Purge the $TPL_PANDOC_PATH/ folder before the conversion - rm -Rf "${TPL_PANDOC_PATH:?}/"* - - # HTML Templates - for mustache in "$TPL_MUSTACHE_PATH/"*.mustache; do - # Remove files path - mustachename=$(basename "$mustache") - # And then the convertion without the mustache extension - mo "$mustache" > "$TPL_PANDOC_PATH/${mustachename%.*}".html - done - - # Feed Template - mo "$TPL_MUSTACHE_PATH/feed/feed.mustache" > "$TPL_PANDOC_PATH/feed.txt" -} diff --git a/functions/get-pandoc-templates b/functions/get-pandoc-templates @@ -1,13 +0,0 @@ -#!/usr/bin/env bash - -# Create an array with templates names -get_pandoc_templates () { - templates=() - - for template in $(find "$TPL_PANDOC_PATH/" -type f \( -name "*.html" \! -name "*.inc.html" ! -name "*-index.html" \)); do - # Template name without path - templatename=$(basename "$template") - # Push templates names in the array - templates+=(${templatename%.*}) - done -}