diff --git a/src/partials/download-this-page.hbs b/src/partials/download-this-page.hbs new file mode 100644 index 0000000..08204eb --- /dev/null +++ b/src/partials/download-this-page.hbs @@ -0,0 +1,5 @@ +{{#if page.attributes.pdf-filename}} + + Download + +{{/if}} diff --git a/src/partials/edit-this-page.hbs b/src/partials/edit-this-page.hbs index 27946f4..e6e0042 100644 --- a/src/partials/edit-this-page.hbs +++ b/src/partials/edit-this-page.hbs @@ -1,5 +1,9 @@ {{#if (and page.fileUri (not env.CI))}} -
+ + + {{else if (and page.editUrl (or env.FORCE_SHOW_EDIT_PAGE_LINK (not page.origin.private)))}} - + + + {{/if}} diff --git a/src/partials/header-content.hbs b/src/partials/header-content.hbs index 862900f..ede07dd 100644 --- a/src/partials/header-content.hbs +++ b/src/partials/header-content.hbs @@ -25,7 +25,7 @@ Protect {{#if page.attributes.txprotect-current-version}}v{{{page.attributes.txprotect-current-version}}}{{/if}} - {{#if page.attributes.pdf-filename}} + diff --git a/src/partials/page-versions.hbs b/src/partials/page-versions.hbs index a9792db..f3fc78b 100644 --- a/src/partials/page-versions.hbs +++ b/src/partials/page-versions.hbs @@ -1,6 +1,8 @@ {{#with page.versions}}