Add option to generate a sitemap.xml file for Google (#178)

* Added option to generate a sitemap.xml file for Google

Signed-off-by: Martin Herbst <mail@mherbst.de>

* Permalink was configured in wrong file

Signed-off-by: Martin Herbst <mail@mherbst.de>

* Added canonical link

Signed-off-by: Martin Herbst <mail@mherbst.de>
pull/242/merge
Martin Herbst 2017-01-22 14:23:51 +01:00 committed by Thomas Dietrich
parent da1f19ed30
commit a73a7e63e3
3 changed files with 8 additions and 2 deletions

2
404.md
View File

@ -1,6 +1,8 @@
---
layout: intro
title: Page not found
permalink: /404.html
---
{% include base.html %}

View File

@ -1,11 +1,14 @@
# Site settings
title: openHAB 2
title: openHAB 2
description: Empowering the Smart Home
baseurl: "" # the subpath of your site, e.g. /blog/
url: "http://docs.openhab.org" # the base hostname & protocol for your site
twitter_username: openhab
github_username: openhab
permalink: /404.html
# Build settings
markdown: kramdown
exclude: ["CNAME", "pom.xml", "README.md", "CONTRIBUTING.md"]
# Additional gems for sitemap generation
gems:
- jekyll-sitemap

View File

@ -16,6 +16,7 @@
<!-- Font -->
<link href='https://fonts.googleapis.com/css?family=Lato:300,400,700' rel='stylesheet' type='text/css' />
<link rel="canonical" href="{{ site.url }}{{ page.url }}" />
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){