add "view source" link to posts

This commit is contained in:
Ben Aultowski 2025-12-26 19:48:26 -05:00
parent 60c29bcefd
commit 259a770b3d
2 changed files with 2 additions and 2 deletions

View file

@ -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 pages source code.'
};
export const easteregg = true;

View file

@ -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>