fakestache-ssg

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

commit 2df0f4fb997a04f5cf217da8c47a77390ed615b9
parent 5d1bafeeab64dbc5251d30df1c4999a8951a75a5
Author: Hugo Soucy <hugo.soucy@savoirfairelinux.com>
Date:   Fri,  4 Nov 2016 21:53:43 -0400

Remove index pages from the loop.

Diffstat:
Mfunctions/create-html-pages | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/functions/create-html-pages b/functions/create-html-pages @@ -12,12 +12,12 @@ create_html_pages () { case "$1" in true) - find_noindex_markdown=$(find "$CONTENT_PATH/" -mindepth 2 -type f -name \*.md) + find_noindex_markdown=$(find "$CONTENT_PATH/" -mindepth 2 -type f \( -name "*.md" ! -name "index.md" \)) rm -R "$PUBLICHTML_PATH/"* rm -R "$TMP_PATH/"* ;; false) - find_noindex_markdown=$(find "$CONTENT_PATH/" -mindepth 2 -type f -name \*.md -mtime -1) + find_noindex_markdown=$(find "$CONTENT_PATH/" -mindepth 2 -type f \( -name "*.md" ! -name "index.md" \) -mtime -1) ;; esac