diff options
Diffstat (limited to 'gen')
-rwxr-xr-x | gen | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gen b/gen index fd94db9..b80c009 100755 --- a/gen +++ b/gen @@ -79,6 +79,7 @@ for f in `find wpisy/kronika/20* -name '*.md' | sort -r`; do photo=`grep "!\[.*\]\(.*\)" $f | head -n 1 | cut -d "(" -f2 | cut -d ")" -f1` [ -z $photo ] && photo="/assets/default_tree.jpg" description=`grep -E "^[A-Z]" $f | grep -v "|" | head -n 1 | cut -d" " -f1-30` + categories=`sed -n '/---/,/---/p' $f | grep " - " | sed 's/[^a-zA-Z0-9]//g'` post_link "$path" "$title" "$photo" "$description" >> wpisy/kronika.html [ $i -lt 20 ] && \ post_rss "$path" "$title" "$photo" "$description" "$f" >> dest/kronika/rss.xml |