hugosoucycc

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

commit 0d7bb6889864beec52604fbeee36f81e52e5a676
parent c7dc67bd323633562a8da1acf0a8f0c7f7448d47
Author: Hugo Soucy <hugo.soucy@savoirfairelinux.com>
Date:   Fri, 17 Mar 2017 09:13:43 -0400

Set mindepth to 1.

Diffstat:
Mfunctions/create-html-pages | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/functions/create-html-pages b/functions/create-html-pages @@ -13,7 +13,7 @@ create_html_pages () { # Then create others 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/"* [ -d "$TMP_PATH/" ] && rm -R "$TMP_PATH/"* ;;