fakestache-ssg

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

commit f3fa4cace108ea9207bd299207ce8dbd782d4ba8
parent 8f82d8cf9255138990a53c8ae12aedf081a98de2
Author: Hugo Soucy <hugo.soucy@savoirfairelinux.com>
Date:   Tue,  8 Nov 2016 17:13:00 -0500

Change mindepth to 1.

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" ! -name "index.md" \)) + find_noindex_markdown=$(find "$CONTENT_PATH/" -mindepth 1 -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" ! -name "index.md" \) -mtime -1) + find_noindex_markdown=$(find "$CONTENT_PATH/" -mindepth 1 -type f \( -name "*.md" ! -name "index.md" \) -mtime -1) ;; esac