Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions _includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 -%}
<footer>
<div class="container">
Expand Down
1 change: 1 addition & 0 deletions _layouts/archive.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
layout: default
source_path: _layouts/archive.html
---
<h1 class="page__title">{% include archive_date.html type=page.type date=page.date %}</h1>

Expand Down