From f78046c351248cfc46655d3693be282e553226e1 Mon Sep 17 00:00:00 2001
From: Pk11
- {{ 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 }}