diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2021-03-13 22:26:11 +0100 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2021-03-13 22:26:11 +0100 |
commit | 15a88cd949f63657e96e8ad6839b669ffba9e00f (patch) | |
tree | ff7ac884dc3b640f9bdc13cb521411d790a2bc28 /ssg5 | |
parent | 9af1574dc0c66a8d70cbdc2bd1a17d1bfa269a05 (diff) | |
download | kronika-15a88cd949f63657e96e8ad6839b669ffba9e00f.tar.gz kronika-15a88cd949f63657e96e8ad6839b669ffba9e00f.zip |
Prettify links
Diffstat (limited to 'ssg5')
-rwxr-xr-x | ssg5 | 6 |
1 files changed, 4 insertions, 2 deletions
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 } |