Skip to content

Create 404 page #83

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

Closed
niccokunzmann opened this issue Jul 22, 2017 · 5 comments
Closed

Create 404 page #83

niccokunzmann opened this issue Jul 22, 2017 · 5 comments

Comments

@niccokunzmann
Copy link
Member

niccokunzmann commented Jul 22, 2017

Website-link: https://duckduckgo.com/?q=interaktives+tutorial+regul%C3%A4re+ausdr%C3%BCcke&t=ffab&ia=software
and https://coderdojopotsdam.github.io/regex-tutorial/steps/00-01-einfuehrung.html

Expected Behavior

I would like to see the something useful when I get to pages which moved.

Actual Behavior

I only see the Github 404 page.

Actions to Reproduce

Click the link https://coderdojopotsdam.github.io/regex-tutorial/steps/00-01-einfuehrung.html
Please let me know if you like to work on this.

Solution Description

Jekyll supports 404 pages. The 404 page should contain a useful description for the tutorial

Hints

The 404 page could redirect to the language overview page

@joshhazelhurst123
Copy link
Contributor

Hi, I would like to a look at this one. I am a little confused however. This link works https://coderdojopotsdam.github.io/regex-tutorial/en/00-01.html
I had to modify what you originally have.
https://coderdojopotsdam.github.io/regex-tutorial/steps/00-01-einfuehrung.html
Is there something I am missing here? Seems like it works fine.

@niccokunzmann
Copy link
Member Author

The problem I see is that the tutorial files get renamed from time to time and older links do not work any more. Normal users can not handle a situation with a 404 page like this:
grafik

So, the 404 page should give some guidance to those who can not manipulate the urls.

The 404 page contains

  • at least
    • a link or a redirect to the tutorial start page
  • maybe
    • an explanation that the file was renamed and you can find it in the tutorial
    • a link to the github search for the file if you really must look at exactly this file

That were my thoughts. What do you think?

@joshhazelhurst123
Copy link
Contributor

I understand now that by putting a 404.html file into the root directory Jekyll will handle the file, with the tags below in the 404.html (first-timers-only here).
1 ---
2 layout: page
3 permalink: /404.html
4 ---
A redirect link to the tutorial start page is a good idea.
I think what you have added into the maybe description is a good idea also. I'm not sure how you want to format this page, if you want something amazing. I was thinking something pretty simple.

@niccokunzmann
Copy link
Member Author

niccokunzmann commented Jul 23, 2017

Sure, you can style it very simply. Very simple, unstyled HTML is an improvement. Besides, this site will be looked at seldomly.

niccokunzmann added a commit that referenced this issue Jul 24, 2017
@niccokunzmann
Copy link
Member Author

#87 closes this. Thanks @joshhazelhurst123

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants