Link to current page's source

This commit is contained in:
Pk11 2021-07-28 01:07:09 -05:00
parent b6c0187d93
commit f78046c351

View File

@ -12,7 +12,15 @@
</a> </a>
<br> <br>
{{ site.data[page.collection].strings.published-with | replace: "$1", site.repo }} {% assign source = site.repo | append: "/blob/main/pages" %}
{% if page.collection == "en-US" %}
{% assign source = source | append: "/_en-US" | append: page.url | replace: ".html", ".md" %}
{% else %}
{% assign url = page.url | remove_first: "/" %}
{% assign source = source | append: "/_" | append: url | replace: ".html", ".md" %}
{% endif %}
{% assign source = source | %}
{{ site.data[page.collection].strings.published-with | replace: "$1", source }}
</p> </p>
</div> </div>
<div class="col-sm-2"> <div class="col-sm-2">