diff --git a/_includes/footer.html b/_includes/footer.html index 30be027..05a53b1 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -12,14 +12,7 @@
- {% 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 | %} + {% assign source = site.repo | append: "/blob/main/pages/" | append: page.path %} {{ site.data[page.collection].strings.published-with | replace: "$1", source }}

diff --git a/_includes/nav.html b/_includes/nav.html index 47b0cf8..05fd131 100644 --- a/_includes/nav.html +++ b/_includes/nav.html @@ -37,19 +37,21 @@ diff --git a/_layouts/wiki.html b/_layouts/wiki.html index e0c2f0e..474c347 100644 --- a/_layouts/wiki.html +++ b/_layouts/wiki.html @@ -20,12 +20,11 @@ layout: compress {% comment %} Get category list {% endcomment %} {% assign items = site[page.collection] | where: "section", page.section | sort_natural: "title" %} {% comment %} First do the index {% endcomment %} - {% for item in items %} - {% if item.url contains "index.html" %} - {{ item.title }} -
- {% endif %} - {% endfor %} + {% assign item = items | where_exp: "item", "item.url contains 'index.html'" | first %} + {% if item %} + {{ item.title }} +
+ {% endif %}