diff options
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" |