diff --git a/data/layout.pug b/data/layout.pug index 238ec87..34855ca 100644 --- a/data/layout.pug +++ b/data/layout.pug @@ -17,7 +17,7 @@ mixin disqus(shortname) mixin menu(m, depth) li.menu-item(class=('-level-' + depth + (m.sections ? ' -parent' : ''))) if m.url - a.link.title(href=(base + m.url + (m.anchor || '')) class=((active === m.url && !m.anchor ? '-active' : '') + (' link-' + m.slug)))= m.title + a.link.title(href=(((m.url.match(/^[a-z]+:\/\//) || m.url.match(/^mailto:/) || m.url.match(/^#/)) ? '' : base) + m.url + (m.anchor || '')) class=((active === m.url && !m.anchor ? '-active' : '') + (' link-' + m.slug)) )= m.title else if m.title span.title= m.title diff --git a/package.json b/package.json index eb868fa..e340a01 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,8 @@ "coverage": "istanbul cover _mocha -x '**/fixture/**' -- -R spec", "coveralls": "nyc report --reporter=text-lcov | coveralls", "lint": "standard", - "prepublish": "npm run build", + "prepublishOnly": "npm run build", + "prepare": "npm run build", "pretest": "npm run lint", "serve": "ss fixture/onmount/_docpress", "test": "nyc mocha",