Skip to content

Commit

Permalink
Add GitHub edit link to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlaki committed Mar 2, 2024
1 parent 0440b7b commit 608870c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/_includes/layout/docs.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ <h1 class="l-documentation__title">{{ title }}</h1>
<div class="l-documentation__content">
<div class="post-content">
{{ content | safe }}

{% if github %}
<div>
<a href="{{ github }}" target="_blank" rel="noopener">Edit on GitHub</a>
</div>
{% endif %}
</div>
</div>
</div>
Expand Down

0 comments on commit 608870c

Please sign in to comment.