blob: e6454f165c047cd23082a9cc2269d513e8e78270 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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"
|