Hi.
I'm Akshay, I go by nerd or nerdypepper on the internet.
I am a compsci undergrad, Rust programmer and an enthusiastic Vimmer.
I write open-source stuff to pass time. I also design fonts: scientifica, curie.
Things I find cool usually end up here.
Get in touch at nerd@irc.rizon.net or nerdypepper@chat.freeode.net.
EOF
# posts
posts=$(ls -t ./posts)
mkdir -p docs/posts
for f in $posts; do
file="./posts/"$f
echo "generating post $file"
id="${file##*/}" # ill name my posts just fine
# generate posts
html=$(lowdown "$file")
stats=$(wc "$file")
words="$(echo $stats | awk '{print $2}')"
lines="$(echo $stats | awk '{print $1}')"
r_time="$(read_time $words)"
height="$(height $lines)"
post_title=$(title_wrapper "$id")
post_date=$(date -r "$file" "+%d/%m — %Y")
post_link=$(link_wrapper "${id%.*}" "$post_title" "$post_date" "$r_time" "$height")
echo -ne "$post_link" >> docs/index.html
id="${id%.*}"
mkdir -p "docs/posts/$id"
esh -s /bin/bash \
-o "docs/posts/$id/index.html" \
"./post.esh" \
file="$file" \
date="$post_date" \
title="$post_title" \
read_time="$r_time" \
height="$height"
done
# generate rss feeds
echo "generating RSS feeds ..."
esh -s /bin/bash \
-o "./docs/index.xml" \
"rss.esh"
cat >> ./docs/index.html << EOF