generator md

This commit is contained in:
Stig-Ørjan Smelror 2024-02-01 18:07:25 +01:00
parent 64a7af04c9
commit ad814303f6

4
qsgen2
View File

@ -152,7 +152,7 @@ elif [[ ${generator} == "markdown" ]]; then
exit
else
# Usage: ${engine} ${1} - Where 1 is the file you want parsed
engine="/usr/bin/markdown ${1} -d"
engine=/usr/bin/markdown ${1} -d
export file_ext=md
fi
fi
@ -180,7 +180,7 @@ function _list_pages() {
setopt local_options null_glob
# Check if there are any .blog files in the blog directory
local pages_files=$(ls *.${file_ext})
local pages_files=$(ls *${file_ext})
if (( ${#pages_files} == 0 )); then
if (${debug}); then _msg debug "_list_pages: No Pages found."; fi
export no_pages_found=true