Skip to content

Commit

Permalink
redirects from default language subfolder to homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
marcanuy committed May 24, 2017
1 parent bd7ae82 commit eaab347
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ group :jekyll_plugins do
gem 'jekyll-sitemap'
gem 'jekyll-toc'
gem 'html-proofer'
gem 'jekyll-redirect-from'
end
5 changes: 4 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ GEM
safe_yaml (~> 1.0)
jekyll-feed (0.9.2)
jekyll (~> 3.3)
jekyll-redirect-from (0.12.1)
jekyll (~> 3.3)
jekyll-sass-converter (1.5.0)
sass (~> 3.4)
jekyll-seo-tag (2.2.3)
Expand Down Expand Up @@ -82,9 +84,10 @@ DEPENDENCIES
html-proofer
jekyll
jekyll-feed
jekyll-redirect-from
jekyll-seo-tag
jekyll-sitemap
jekyll-toc

BUNDLED WITH
1.14.6
1.15.0
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ Just clone this repo and start building yours.
<link rel="alternate" hreflang="de" href="http://example.com/de" />
<link rel="alternate" hreflang="en" href="http://example.com/en" />

- Redirects from default language subfolder to site homepage (`/en` -> `/`)

# Design Philosophy

**jekyll-skeleton** has been built with the following principles in
Expand Down Expand Up @@ -200,6 +202,8 @@ The following properties in posts front-matter are used:
files to make sure they're accurate.
- <https://github.com/jekyll/jekyll-feed> A Jekyll plugin to generate
an Atom (RSS-like) feed of your Jekyll posts
- <https://github.com/jekyll/jekyll-redirect-from> Specify multiple
redirections URLs for pages and posts.

If you want to host a site derived from this repo in Github, you can
follow this guide: [Automated Deployment Of Jekyll Websites To Github Pages With A Git Push To Github ](https://simpleit.rocks/automated-deployment-of-jekyll-websites-to-github-pages-with-a-git-push-to-github/).
Expand Down
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ gems:
- jekyll-sitemap
- jekyll-feed
- jekyll-seo-tag
- jekyll-redirect-from

defaults:
#languages
Expand Down
2 changes: 2 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
title: Homepage example
layout: home
redirect_from:
- /en/ # the default language subfolder redirects here
---

Example home page, Hello World!

0 comments on commit eaab347

Please sign in to comment.