Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement redirects for gh-pages #107

Merged
merged 2 commits into from
May 14, 2019
Merged

Implement redirects for gh-pages #107

merged 2 commits into from
May 14, 2019

Conversation

thekaveman
Copy link
Member

@thekaveman thekaveman commented May 14, 2019

This is one option, using a custom layout with <meta> tag and front-matter variables.

To implement a new redirect, simply create a new .md file in root with a front-matter declaration like:

---
layout: redirect
permalink: /<shortcut here>/
redirect: <redirect url here>
---

Closes #106

using page.redirect_to front matter variable
to implement a new redirect, create a .md file in root
with a front-matter declaration like:

---
layout: redirect
permalink: /<shortcut here>/
redirect: <redirect url here>
---
@thekaveman thekaveman added the Status: Urgent Needs to be worked on immediately label May 14, 2019
@thekaveman thekaveman mentioned this pull request May 14, 2019
15 tasks
@thekaveman thekaveman added this to In progress in migrate 1.x to 2.0 May 14, 2019
@ExperimentsInHonesty ExperimentsInHonesty merged commit 392f530 into gh-pages May 14, 2019
@ExperimentsInHonesty ExperimentsInHonesty deleted the redirects branch May 14, 2019 06:59
@ExperimentsInHonesty ExperimentsInHonesty moved this from In progress to Done in migrate 1.x to 2.0 May 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Urgent Needs to be worked on immediately
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants