blob: 8f90feb8cdfcf162778ab527b96e1f5dd2c16b3a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/sh
rm -r dest || true
mkdir dest
cat > wpisy/kronika.html << EOF
<h2>Ostatnie wpisy</h2>
<a href="rss.xml"><img alt="" src="/assets/rss.svg" style="height:1em">RSS</a>
<div>
EOF
for f in `find wpisy -name '*.md'`; do
path=`echo $f | sed 's/wpisy\///;s/md/html/'`
echo "<a href=\"$path\"><div>$path</div></a>" >> wpisy/kronika.html
done
echo "</div>" >> wpisy/kronika.html
./ssg5 wpisy dest "19pdh" "https://19.niedzwiedzinski.cyou"
|