Skip to content

Commit

Permalink
Fix the back button on pages
Browse files Browse the repository at this point in the history
(#130 on Hydeout)[fongandrew/hydeout#130]
  • Loading branch information
frothedoatmilk committed Apr 17, 2024
1 parent 618d9b2 commit 070b19c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions _includes/back-link.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{% assign back_page = find: site.pages, "name", page.back_page %}
{% if back_page != null %}
<p class="back-link">
<a href="{{ back_page.url | relative_url }}"><span class="back-arrow icon">{% include svg/back-arrow.svg %}</span>{{ back_page.short_title | default: back_page.title }}</a>
</p>
{% endif %}
1 change: 1 addition & 0 deletions about.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
layout: page
title: About Me
permalink: /about/
back_page: 'index.html'
sidebar_link: true
---

Expand Down

0 comments on commit 070b19c

Please sign in to comment.