Skip to content
This repository was archived by the owner on Oct 27, 2020. It is now read-only.

Commit a34e180

Browse files
committed
Only add the link to website generator (e.g. not to PDF)
1 parent eaaa124 commit a34e180

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ module.exports = {
99
hooks: {
1010
// After html generation
1111
"page": function(page) {
12+
if(this.config.options.generator !== 'website') {
13+
return page;
14+
}
15+
1216
var config = this.options.pluginsConfig["edit-link"] || {};
1317

1418
if (!config.base) {

0 commit comments

Comments
 (0)