Creating Quick and Painless Linux Tutorials
My name is Tony, and I encourage you all to visit the command line and learn how to maneuver the CLI. Installing Linux distributions, window managers, text editors, and more will help you grow not only as a developer, but as a computer enthusiast.
Recent Tutorials
Stay tuned for new videos and writeups!
EOF
tut_sorted | head -3 | while IFS="$(printf '\t')" read -r d s; do tut_card "$s"; done
cat <
EOF
} | render "$OUT/index.html" "Tony, btw." home index 0
# ---------- tutorial list ----------
{
echo ''
tut_sorted | while IFS="$(printf '\t')" read -r d s; do tut_card "$s"; done
echo '
'
} | render "$OUT/tutorial/index.html" "Tutorials" tutorial index 1
# ---------- community list ----------
{
echo ''
comm_sorted | while IFS="$(printf '\t')" read -r d s; do comm_card "$s"; done
echo '
'
} | render "$OUT/community/index.html" "Community" community index 1
# ---------- support ----------
{
cat <
Subscribe on YouTube
Support the channel by subscribing — it's free and helps spread the word.
Go to YouTube
Donate via Square
Help keep the content flowing. Every contribution makes a difference.
Donate via Square
Support on Ko-Fi
Prefer Ko-Fi? Buy me a coffee and support future videos directly.
Go to Ko-Fi
EOF
} | render "$OUT/support/index.html" "Support the Channel" support index 1
# ---------- tags ----------
tagdir=$(mktemp -d)
for f in content/tutorial/*/index.md; do
b=$(fm "$f"); s=$(basename "$(dirname "$f")")
for tg in $(tagsof "$b"); do ts=$(tslug "$tg"); echo "tutorial:$s" >> "$tagdir/$ts"; echo "$tg" > "$tagdir/$ts.name"; done
done
for f in content/community/*/index.md; do
b=$(fm "$f"); s=$(basename "$(dirname "$f")")
for tg in $(tagsof "$b"); do ts=$(tslug "$tg"); echo "community:$s" >> "$tagdir/$ts"; echo "$tg" > "$tagdir/$ts.name"; done
done
index_body=$(mktemp)
echo '' >> "$index_body"
render "$OUT/tags/index.html" "Tags" tags index 1 < "$index_body"
rm -rf "$tagdir" "$index_body"
echo "generated home, lists, support, tags"