diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2021-03-13 20:40:38 +0100 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2021-03-13 20:40:38 +0100 |
commit | 52f6fea7f826d6903256d30a966596a5de4ff4a1 (patch) | |
tree | b434faa61996b79b755e76edd0227d6aeea06dee /gen | |
parent | f630d296af067bdfa5ad9fa423d36aa629f17148 (diff) | |
download | kronika-52f6fea7f826d6903256d30a966596a5de4ff4a1.tar.gz kronika-52f6fea7f826d6903256d30a966596a5de4ff4a1.zip |
Add ssg5
Diffstat (limited to 'gen')
-rwxr-xr-x | gen | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gen b/gen new file mode 100755 index 0000000..e6454f1 --- /dev/null +++ b/gen @@ -0,0 +1,17 @@ +#!/bin/sh + +rm -r dest +mkdir dest + +cat > wpisy/kronika.html << EOF +<h2>Ostatnie wpisy</h2> + +<a href="rss.xml">RSS</a> +EOF + +for f in `find wpisy -name '*.md'`; do + path=`echo $f | sed 's/wpisy\///;s/md/html/'` + echo "<a href=\"$path\">$path</a>" >> wpisy/kronika.html +done + +./ssg5 wpisy dest "19pdh" "https://19.niedzwiedzinski.cyou" |