From 002118777ddf2f81d2894d81bc7fadc64dbbc36f Mon Sep 17 00:00:00 2001 From: mjfernez Date: Fri, 14 Jul 2023 13:21:13 -0400 Subject: Add script to update TOC links With commit 50b72b5787338ee3c0ef0a4aebfcdf8acf3c3a08 in ezcms, the default behavior for links changes to open in a new tab. This script helps override the option for table of content links by updating "target" to point to "_self" --- panupdate | 1 + 1 file changed, 1 insertion(+) (limited to 'panupdate') diff --git a/panupdate b/panupdate index d751040..26063c0 100755 --- a/panupdate +++ b/panupdate @@ -11,6 +11,7 @@ do pandoc -s --toc --toc-depth=6 \ --ascii -V toc-title:"Contents" \ -f markdown-smart $file -t html -o $newfile + python update_targets.py $newfile fi if [[ "$file" == *.description ]] then -- cgit v1.2.3