From 17292069a6503d94baad317a4261ea42d327e818 Mon Sep 17 00:00:00 2001 From: Christopher Bero Date: Fri, 12 May 2017 00:06:34 -0500 Subject: example of section hyperlinks, do not merge. --- www/publish.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'www') diff --git a/www/publish.sh b/www/publish.sh index 55b6660a..f795ee15 100755 --- a/www/publish.sh +++ b/www/publish.sh @@ -65,3 +65,6 @@ pandoc $TOC $SMART temp.md -s --css /global.css $OPTS \ # additionally, produce bare file for RSS pandoc $1 > $FILE.bare.html + +# generate section id links +sed $FILE.html -i -e 's:^

\(.*\)

:

\2

:g' -- cgit v1.2.3-70-g09d2 From 529f108d8c175fb8a7b2541b64991445c9ef7ac7 Mon Sep 17 00:00:00 2001 From: Christopher Bero Date: Fri, 12 May 2017 17:19:13 -0500 Subject: Section title anchors for webpages. --- www/publish.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'www') diff --git a/www/publish.sh b/www/publish.sh index f795ee15..4b284041 100755 --- a/www/publish.sh +++ b/www/publish.sh @@ -66,5 +66,5 @@ pandoc $TOC $SMART temp.md -s --css /global.css $OPTS \ # additionally, produce bare file for RSS pandoc $1 > $FILE.bare.html -# generate section id links -sed $FILE.html -i -e 's:^

\(.*\)

:

\2

:g' +# generate section title anchors as [link] +sed $FILE.html -i -e 's_^\(.*\)_\3 [link]_' -- cgit v1.2.3-70-g09d2 From f2c1a8197bc9b8685851b21b8968216141582825 Mon Sep 17 00:00:00 2001 From: Christopher Bero Date: Fri, 12 May 2017 17:23:05 -0500 Subject: Fixed typo in sed command to generate section title anchors. --- www/publish.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'www') diff --git a/www/publish.sh b/www/publish.sh index 4b284041..fbfddbd8 100755 --- a/www/publish.sh +++ b/www/publish.sh @@ -67,4 +67,4 @@ pandoc $TOC $SMART temp.md -s --css /global.css $OPTS \ pandoc $1 > $FILE.bare.html # generate section title anchors as [link] -sed $FILE.html -i -e 's_^\(.*\)_\3 [link]_' +sed $FILE.html -i -e 's_^\(.*\)_\3 [link]_' -- cgit v1.2.3-70-g09d2