|
|
@ -148,6 +148,9 @@ md_to_html() {
|
|
|
|
local files=$(find "$BASE_PATH/source" -name "*.md")
|
|
|
|
local files=$(find "$BASE_PATH/source" -name "*.md")
|
|
|
|
|
|
|
|
|
|
|
|
for file in $files; do
|
|
|
|
for file in $files; do
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo "Converting $file"
|
|
|
|
|
|
|
|
|
|
|
|
read_metadata "$file" # Sets the 'metadata' variable
|
|
|
|
read_metadata "$file" # Sets the 'metadata' variable
|
|
|
|
|
|
|
|
|
|
|
|
convert_to_array "$metadata" #Sets the 'meta_array' array
|
|
|
|
convert_to_array "$metadata" #Sets the 'meta_array' array
|
|
|
@ -206,6 +209,8 @@ gen_sorted_file_list() { # Generate a list of the HTMl files, sorted by when the
|
|
|
|
|
|
|
|
|
|
|
|
gen_index_page() { # Generate an index page (site map) that includes links to the other pages
|
|
|
|
gen_index_page() { # Generate an index page (site map) that includes links to the other pages
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo "Generating index page..."
|
|
|
|
|
|
|
|
|
|
|
|
local index_file_html="<nav class=\"toc\">"$'\n' # Variable to store the body HTML of the index page; enclose the list in a nav
|
|
|
|
local index_file_html="<nav class=\"toc\">"$'\n' # Variable to store the body HTML of the index page; enclose the list in a nav
|
|
|
|
|
|
|
|
|
|
|
|
for file in $1; do
|
|
|
|
for file in $1; do
|
|
|
|