Can't touch #this

This commit is contained in:
vflyson 2017-02-20 04:09:46 -05:00
parent 05d90e6068
commit 3f499824f8
1 changed files with 4 additions and 0 deletions

View File

@ -11,6 +11,10 @@ module.exports = {
if (anchors[i].getAttribute('href')) {
var anchor = anchors[i]
var href = anchor.getAttribute('href').trim()
// Do not touch hrefs which start with a pound sign
if (href[0] == '#') continue
var absoluteURL = functions.resolve(absBasePath, href)
anchor.setAttribute('href', absoluteURL)