diff options
| Commit | 6b8cae12cb5d60b37931332d9d8008649ae14566 (patch) | |
|---|---|---|
| Author | 2026-09-12 11:31:19 +0300 | |
| Committer | 2026-09-12 13:54:29 +0300 | |
| Files | 9ff20cdba71fff44e7b23b43e46a75276df6d7f1 /ext/pagenav.awk | |
| syndamia.com-6b8cae12cb5d60b37931332d9d8008649ae14566.tar syndamia.com-6b8cae12cb5d60b37931332d9d8008649ae14566.tar.gz syndamia.com-6b8cae12cb5d60b37931332d9d8008649ae14566.zip | ||
| Parent | 918bac7614e560678d51bfba2a25582a3284bdd9 (diff) | |
feat!: Update dunbar markup
Currently the newest version of the markup is not on the main branch,
mostly because of polish and the documentation.
As an effect from the changes to the language, the sitemap is the only
thing which needs to be created externally.
1 files changed, 0 insertions, 34 deletions
| -rw-r--r-- | ext/pagenav.awk | 34 |
diff --git a/ext/pagenav.awk b/ext/pagenav.awk deleted file mode 100644 index 0f2a297..0000000 --- a/ext/pagenav.awk +++ /dev/null @@ -1,34 +0,0 @@ -FNR == 1 { - STD_FILENAME = FILENAME - sub(/^\.\/website\//, "", STD_FILENAME) - - substitutions["dbarsep"] = " || " - - # Stats element - stats = \ -" <div id=\"pagenav-stats\">" ORS \ -" <strong>Reading: [$expected-reading]</strong> " substitutions["dbarsep"] " <strong>Created: [$created]</strong> " substitutions["dbarsep"] " <strong>Edited: [$edited]</strong>" ORS \ -" " substitutions["dbarsep"] " <a href=\"https://gitlab.com/Syndamia/syndamiadotcom/-/blob/master/src/" STD_FILENAME "\"><strong>GitLab source</strong></a>" ORS \ -" </div>" - - # Breadcrumbs element - match(FILEDIR, /(blog|slides|teaching|misc)/) - foldersLen = split(substr(FILEDIR, RSTART), folders, "/") - - href = ".." - breadcrumb = " » <em>" folders[foldersLen] "</em>" - for (i = foldersLen-1; i > 0; i--) { - breadcrumb = " » " "<a href=\"" href "\">" folders[i] "</a>" breadcrumb - href = "../" href - } - breadcrumb = \ -" <div id=\"pagenav-breadcrumb\">" ORS \ -" " breadcrumb ORS \ -" </div>" - - substitutions["pagenav"] = \ -".text <div id=\"pagenav\">" ORS \ - stats ORS \ - breadcrumb ORS \ -"</div>" -} |