Skip to content

Commit e29320f

Browse files
committed
Allow override of source path for a file (see #559)
1 parent ba1b098 commit e29320f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

_includes/footer.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
{%- assign first_page = site.pages | where_exp: 'p','p.paginated == true' | sort: 'path' | first -%}
44
{%- assign edit_link = edit_link | replace: page.path, first_page.path -%}
55
{%- endif -%}
6+
{%- if page.source_path -%}
7+
{%- assign edit_link = edit_link | replace: page.path, page.source_path -%}
8+
{%- endif -%}
69
<footer>
710
<div class="container">
811
<p class="copy">

0 commit comments

Comments
 (0)