There are certain changes that I’d like to apply to every chapter’s Export-to-HTML page, first to add a “Home” button (to navigate to the root of the site that contains these Scripture pages and more) and then to use navigation buttons that look more up-to-date than the Late ASCII-Art Age.
That is, for this RTL project, instead of this:
we want it to look like this:
My question is whether there is any built-in hook to call a script, or any other way of specifying HTML changes? If not, could there be? Or perhaps these specific changes could be effected via checkboxes on the Export-to-HTML Settings?
(Also, the other change I’d love to see to the HTML output: It would be all-upside-with-no-downside if the index.html page was smart enough to handle a scripture reference.)
For the navigation buttons, these are the changes required:
To include the Font-Awesome stylesheet, Find:
(?<=href="css/sab-stylesheet\.css" />)
Replace with:
\n<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
To add the Home button, Find:
(?<=<div class="navigation-top">)
Replace with:
\n <span class="button"><a href='../../' title='Home'> <i class="fa fa-home"></i> </a></span>
To display double rightwards arrow for Previous Book, Find:
(?<=title='Previous Book'> )<<
Replace with:
<i class="fa fa-fast-forward"></i>
To display single rightwards arrow for Previous Chapter, Find:
(?<=title='Previous Chapter'> )<
Replace with:
<i class="fa fa-step-forward"></i>
To display single leftwards arrow for Next Chapter, Find:
(?<=title='Next Chapter'> )>
Replace with:
<i class="fa fa-step-backward"></i>
To display double leftwards arrow for Next Book, Find:
(?<=title='Next Book'> )>>
Replace with:
<i class="fa fa-fast-backward"></i>