Skip to content
This repository has been archived by the owner on Nov 10, 2022. It is now read-only.

Fix: Edit this page links #722

Merged
merged 1 commit into from
Apr 30, 2020
Merged

Fix: Edit this page links #722

merged 1 commit into from
Apr 30, 2020

Conversation

kaicataldo
Copy link
Member

As reported here, there are a number of broken "Edit this page" links. This PR fixes them!

@eslint-deprecated eslint-deprecated bot added the triage An ESLint team member will look at this issue soon label Apr 28, 2020
@@ -2,8 +2,8 @@
<div class="container">
<footer>
<ul class="list-inline">
{% if page.edit_link %}
<li><a href="{{ page.edit_link }}">Edit this page</a></li>
{% if edit_link %}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The root of the problem - this data is at the top level, not nested in page

@@ -1,7 +1,6 @@
---
title: 404
layout: doc
edit_link: https://github.com/eslint/eslint.github.io/edit/master/_pages/404.md
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are generated by line 8 of _includes/footer.liquid,

@@ -1,5 +1,5 @@
---
title: ESLint Contributor License Agreement
layout: content-only
edit_link: https://github.com/eslint/eslint.github.io/edit/master/_pages/cla.md
edit_link: https://github.com/eslint/website/edit/master/_pages/cla.md
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This redirects correctly, but we might as well update it.

@jsf-clabot
Copy link

jsf-clabot commented Apr 28, 2020

CLA assistant check
All committers have signed the CLA.

@netlify
Copy link

netlify bot commented Apr 28, 2020

Deploy preview for eslint ready!

Built with commit 2577157

https://deploy-preview-722--eslint.netlify.app

@kaicataldo kaicataldo added bug The site is working incorrectly and removed triage An ESLint team member will look at this issue soon labels Apr 28, 2020
@netlify
Copy link

netlify bot commented Apr 28, 2020

Deploy preview for eslint ready!

Built with commit f54384b

https://deploy-preview-722--eslint.netlify.app

Copy link

@LinusU LinusU left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 👏

@nzakas nzakas merged commit f3f508b into master Apr 30, 2020
@kaicataldo kaicataldo deleted the fix-edit-links branch May 7, 2020 01:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug The site is working incorrectly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants