diff options
author | Christopher Bero <csb0019@uah.edu> | 2017-05-12 17:19:13 -0500 |
---|---|---|
committer | Christopher Bero <csb0019@uah.edu> | 2017-05-12 17:19:13 -0500 |
commit | 529f108d8c175fb8a7b2541b64991445c9ef7ac7 (patch) | |
tree | 9bb49583b6891ec716e42dbf9e11538c548498a2 /www | |
parent | 17292069a6503d94baad317a4261ea42d327e818 (diff) | |
download | librebootfr-529f108d8c175fb8a7b2541b64991445c9ef7ac7.tar.gz librebootfr-529f108d8c175fb8a7b2541b64991445c9ef7ac7.zip |
Section title anchors for webpages.
Diffstat (limited to 'www')
-rwxr-xr-x | www/publish.sh | 4 |
1 files changed, 2 insertions, 2 deletions
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:^<h2 id="\(.*\)">\(.*\)</h2>:<a href="#\1"><h2 id="\1">\2</h2></a>:g' +# generate section title anchors as [link] +sed $FILE.html -i -e 's_^<h\([123]\) id="\(.*\)">\(.*\)</h\1>_<h\1 style="display: inline;" id="\2">\3</h\1> [<a style="display: inline;" href="#\1">link</a>]_' |