fi
mdfile(){
+ # Check if page exists, if possible fall
+ # back to default page from installation
local page="$(PATH "$1")"
+ # IMPORTANT: A Copy of this function exists
+ # in `handlers/10_translations.sh`
+ # Look into it now!
+ # Keep it synchronized, when changing anything
+
if [ -f "$_DATA/pages/$page/#page.md" ]; then
printf %s\\n "$_DATA/pages/$page/#page.md"
+ return 0
elif [ -f "$_EXEC/pages/$page/#page.md" ]; then
printf %s\\n "$_EXEC/pages/$page/#page.md"
+ return 0
else
return 1
- fi
+ fi 2>&-
+ # ^^ suppress error messages produced
+ # by printf when stdout was closed
}
size_human(){