Skip to content

Commit

Permalink
Add "view source" button to posts.
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-drewery committed Jun 30, 2023
1 parent 9960808 commit 786514d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions site/Pages/Post.razor
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
<a href="/" class="btn btn-outline-custom">
<i class="mdi mdi-step-backward"></i>
Go back
@{ var sourceUrl = $"https://github.com/adam-drewery/blog/blob/main/content/{Id}.md"; }
</a><a href="@sourceUrl" class="btn btn-outline-custom" style="margin-left: 20px">
<i class="mdi mdi-github-box"></i>
View Source
</a>
<div class="row pt-5">
<div class="col-xl-8">
Expand Down

0 comments on commit 786514d

Please sign in to comment.