FNR == 1 { STD_FILENAME = FILENAME sub(/^\.\/website\//, "", STD_FILENAME) substitutions["dbarsep"] = " || " # Stats element stats = \ "
" ORS \ " Reading: [$expected-reading] " substitutions["dbarsep"] " Created: [$created] " substitutions["dbarsep"] " Edited: [$edited]" ORS \ " " substitutions["dbarsep"] " GitLab source" ORS \ "
" # Breadcrumbs element match(FILEDIR, /(blog|slides|teaching|misc)/) foldersLen = split(substr(FILEDIR, RSTART), folders, "/") href = ".." breadcrumb = " » " folders[foldersLen] "" for (i = foldersLen-1; i > 0; i--) { breadcrumb = " » " "" folders[i] "" breadcrumb href = "../" href } breadcrumb = \ "
" ORS \ " " breadcrumb ORS \ "
" substitutions["pagenav"] = \ ".text
" ORS \ stats ORS \ breadcrumb ORS \ "
" }