From 15a88cd949f63657e96e8ad6839b669ffba9e00f Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Sat, 13 Mar 2021 22:26:11 +0100 Subject: Prettify links --- ssg5 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ssg5') diff --git a/ssg5 b/ssg5 index 9aa58fe..272f3ca 100755 --- a/ssg5 +++ b/ssg5 @@ -188,10 +188,11 @@ render_html_files() { render_md_files_lowdown() { while read -r f do + mkdir "$2/${f%\.md}" lowdown \ < "$1/$f" | render_html_file "$3" \ - > "$2/${f%\.md}.html" + > "$2/${f%\.md}/index.html" done } @@ -199,9 +200,10 @@ render_md_files_lowdown() { render_md_files_Markdown_pl() { while read -r f do + mkdir "$2/${f%\.md}" Markdown.pl < "$1/$f" | render_html_file "$3" \ - > "$2/${f%\.md}.html" + > "$2/${f%\.md}/index.html" done } -- cgit 1.4.1