From 67579e911a6617678e7a2633994dcfdfa443add6 Mon Sep 17 00:00:00 2001 From: Chris Buckley Date: Tue, 4 Aug 2026 21:38:45 +0100 Subject: [PATCH] layout source_path for archive page --- _includes/footer.html | 5 +++-- _layouts/archive.html | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/_includes/footer.html b/_includes/footer.html index e799f91..a029c35 100755 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -3,8 +3,9 @@ {%- assign first_page = site.pages | where_exp: 'p','p.paginated == true' | sort: 'path' | first -%} {%- assign edit_link = edit_link | replace: page.path, first_page.path -%} {%- endif -%} -{%- if page.source_path -%} - {%- assign edit_link = edit_link | replace: page.path, page.source_path -%} +{%- if page.source_path or layout.source_path -%} + {%- assign source_path = page.source_path | default: layout.source_path %} + {%- assign edit_link = edit_link | replace: page.path, source_path -%} {%- endif -%}