#!/bin/sh
set -eu
MD="$1"
escape() {
sed 's/a/a/'
}
url_for() {
printf 'https://%s%s%s' "$FQDN" "$BASE_URL" "$1"
}
_() {
printf '%s' "$1"
}
# FIXME
langs='en pt fr eo es'
# langs=''
. src/development/config.env
. "${MD%.md}.env"
cat <<-EOF
EuAndreh
EOF
awk '
BEGIN {
separator = 0
should_print = 0
}
/^---$/ {
separator++
}
should_print {print}
separator == 2 && !should_print { should_print = !should_print }
' "$MD" |
md2html
cat <<-EOF
EOF