fakestache-ssg

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

commit a17051f99f657d4a22c029efae092400a78eb9de
parent 91708357083013af6cdeeb2ced51a10aadbbbc70
Author: Hugo Soucy <hugo@soucy.cc>
Date:   Sun, 12 Mar 2017 21:22:10 -0400

Be more specific in the creation of the templates array.

Diffstat:
Mfunctions/get-pandoc-templates | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/functions/get-pandoc-templates b/functions/get-pandoc-templates @@ -4,11 +4,12 @@ get_pandoc_templates () { templates=() - for template in $TPL_PANDOC_PATH/*; do + 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 - # End + # End } +