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

Combine /index, /<lang>/index, and /404 #975

Merged
merged 1 commit into from
Jul 26, 2015

Conversation

harding
Copy link
Contributor

@harding harding commented Jul 24, 2015

When working on #972, I discovered Bitcoin.org has three pages with nearly identical content:

  • /<language>/index.html which provides the Bitcoin.org index page localized into each supported language
  • /index.html which provides a fallback in case language redirection doesn't work. This page is currently identical to the English localized index page.
  • /404.html which provides the 404 error page, which includes a Javascript redirect to the localized index page plus fallback content that looks like an old version of the English localized index page.

This PR now builds all three pages from the same source so that if we change any text, we only have to change it once. (No text changes are introduced in this PR, except that text displayed on the 404 page is now identical to the text displayed on the index pages.)

I tested this for English and Spanish.

@harding harding force-pushed the merge-index-pages branch from 3fbf95a to d1f49ba Compare July 24, 2015 20:57
@ghost1542
Copy link
Contributor

That's indeed better, thanks!

@harding
Copy link
Contributor Author

harding commented Jul 25, 2015

@saivann thanks!

In the absence of critical feedback, this will be merged around 16:00 UTC Saturday.

@harding harding merged commit d1f49ba into bitcoin-dot-org:master Jul 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants