add "view source" link to posts
This commit is contained in:
parent
60c29bcefd
commit
259a770b3d
2 changed files with 2 additions and 2 deletions
|
|
@ -99,6 +99,6 @@ export const tests = {
|
|||
export const viewRepo = {
|
||||
// this is for the view/edit on github link. The value in the package.json will be pulled in.
|
||||
allow: true,
|
||||
infoText: 'View this page on GitHub'
|
||||
infoText: 'View this page’s source code.'
|
||||
};
|
||||
export const easteregg = true;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
<hr />
|
||||
<p class="text-step-min-1">
|
||||
{{ meta[page.lang].blog.githubEdit }}
|
||||
<a href="{{ pkg.repository.url | url | replace('.git', '/tree/main/') }}{{ page.inputPath }}"
|
||||
<a href="{{ pkg.repository.url | url | replace('.git', '/branch/main/') }}{{ page.inputPath }}"
|
||||
>{{ meta.viewRepo.infoText }}</a
|
||||
>.
|
||||
</p>
|
||||
|
|
|
|||
Loading…
Reference in a new issue