nerdypepper's μblog https://peppe.rs programming, design, software nerdypepper's μblog https://u.peppe.rs/n.png https://peppe.rs en-us Creative Commons BY-NC-SA 4.0 <% for f in `ls -t ./posts`; do file="./posts/"$f post_date=$(date -u -r "$file" "+%a, %d %b %Y %H:%M:00 %z") html=$(pandoc -t html "$file" | sed -e "s/&/\&/g" -e "s//\>/g") id="${file##*/}" id="${id%.*}" post_title=$(echo "$id" | sed -E -e "s/\..+$//g" -e "s/_(.)/ \u\1/g" -e "s/^(.)/\u\1/g") post_link="https://peppe.rs/posts/$id/" echo "" echo "$post_title" echo "$html" echo "$post_link" echo "$post_date" echo "$post_link" echo "" done %>