From 0fbac293a5b3ab2e1360d8dc2743c1ae71bc128f Mon Sep 17 00:00:00 2001 From: Syndamia Date: Mon, 18 Aug 2025 19:02:23 +0300 Subject: chore: Remove outdated files --- awk-edits/Pagenav.awk | 50 -------------------------------------------------- 1 file changed, 50 deletions(-) delete mode 100644 awk-edits/Pagenav.awk (limited to 'awk-edits/Pagenav.awk') diff --git a/awk-edits/Pagenav.awk b/awk-edits/Pagenav.awk deleted file mode 100644 index 3b05c10..0000000 --- a/awk-edits/Pagenav.awk +++ /dev/null @@ -1,50 +0,0 @@ -# .*(blog|slides|teaching|tutorials|misc)/.*/.*html -# -# == About == -# -# I call pagenav the stuff directly below the first h1. These include file dates -# and GitLab source link. -# Currently it only works for blog and tutorial pages. -# -# This is by far the most hard-coded and inefficient awk script in awk-edits. -# Creation and last edited dates are taken from git commits, and getting the correct info -# by file name can only be done (easily) with git log, which is unfortunately very slow. -# Another issue is that it depends on the build directories in build scripts, meaning -# it won't work without modification if you try to build it somewhere else. -# -# Split into Pagenav.awk and post-pagenav.awk - -nopagenav == 0 && /

" ORS \ -" Reading: " (int(words / 180) + 1) " min || Created: " created " || Edited: " edited "" ORS \ -" || GitLab source" ORS \ -"" - - # Breadcrumbs element - sub(/\/[^/]*$/, "", path) - foldersLen = split(path, folders, "/") - - href = ".." - breadcrumb = " » " folders[foldersLen] "" - for (i = foldersLen-1; i > 0; i--) { - breadcrumb = " » " "" folders[i] "" breadcrumb - href = "../" href - } - breadcrumb = \ -"
" ORS \ -" " breadcrumb ORS \ -"
" - - # Pagenav element - $0 = $0 ORS \ -"
" ORS \ - stats ORS \ - breadcrumb ORS \ -"
" - - nopagenav = 1 -} -- cgit v1.3.1-26-gb76a