Skip to content

Commit

Permalink
[FLINK-9806][docs] Add canonical link
Browse files Browse the repository at this point in the history
This closes apache#6396.
  • Loading branch information
patricklucas authored and zentol committed Jul 25, 2018
1 parent 87bdf7e commit bd71d28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ download_url: "http://flink.apache.org/downloads.html"

# please use a protocol relative URL here
baseurl: //ci.apache.org/projects/flink/flink-docs-master
stable_baseurl: //ci.apache.org/projects/flink/flink-docs-stable

# Flag whether this is a stable version or not. Used for the quickstart page.
is_stable: false
Expand Down
1 change: 1 addition & 0 deletions docs/_layouts/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
<title>Apache Flink {{ site.version_title }} Documentation: {{ page.title }}</title>
<link rel="shortcut icon" href="{{ site.baseurl }}/page/favicon.ico" type="image/x-icon">
<link rel="icon" href="{{ site.baseurl }}/page/favicon.ico" type="image/x-icon">
<link rel="canonical" href="{{ site.stable_baseurl }}{{ page.url | replace:'index.html',''}}">

<!-- Bootstrap -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
Expand Down

0 comments on commit bd71d28

Please sign in to comment.