File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 1+ 'use strict'
2+
3+ module . exports = ( page ) => {
4+ if ( page . attributes && page . attributes [ 'edit-url-text' ] ) return page . attributes [ 'edit-url-text' ]
5+ return ( page . attributes && page . attributes . theme === 'docs' ) ? 'Raise an issue' : 'Edit this page'
6+ }
Original file line number Diff line number Diff line change 22 {{ #if (and page.fileUri (not env.CI ))}}
33 <div class =" edit-this-page" ><a href =" {{ page.fileUri }} " >Edit this Page</a ></div >
44 {{ else if (and page.editUrl (or env.FORCE_SHOW_EDIT_PAGE_LINK (not page.origin.private)))}}
5- <div class =" edit-this-page" ><a href =" {{ page.editUrl }} " >Edit this Page </a ></div >
5+ <div class =" edit-this-page" ><a href =" {{ page.editUrl }} " >{{ #with ( edit-url-text page ) }} {{{ this }}} {{ /with }} </a ></div >
66 {{ /if }}
77{{ /unless }}
You can’t perform that action at this time.
0 commit comments