mirror of
https://github.com/sparkle-project/sparkle-project.github.io.git
synced 2025-11-01 15:35:08 +00:00
Merge pull request #27 from sparkle-project/canonicallinks
Canonical links
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<link rel="canonical" href="https://sparkle-project.org{{ page.url | replace: '/index.html' , '/' }}" />
|
||||
<title>{% if page.title %} {{ page.title }} - {% endif %} {{ site.title }}</title>
|
||||
|
||||
<link href="/css/main.css" media="screen" rel="stylesheet" type="text/css" />
|
||||
@@ -24,6 +25,11 @@
|
||||
|
||||
ga('create', 'UA-52386963-1', 'auto');
|
||||
ga('send', 'pageview');
|
||||
|
||||
// on GitHub pages we can't distinguish server-side between CDN and users' visits
|
||||
if ('sparkle-project.github.io' === location.hostname) {
|
||||
location.href = 'https://sparkle-project.org' + location.path;
|
||||
}
|
||||
//]]>
|
||||
</script>
|
||||
</head>
|
||||
@@ -59,8 +65,8 @@
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<footer>
|
||||
<p>Copyright © 2015 Sparkle Project. All Rights Reserved.</p>
|
||||
<p>This website is <a href="//github.com/{{ site.github_username }}/{{ site.github_username }}.github.io">open source</a>.</p>
|
||||
<p>© 2016 Sparkle Project. All Rights Reserved.</p>
|
||||
<p>This website is <a rel="alternate" href="//github.com/{{ site.github_username }}/sparkle-project.github.io/blob/master/{{page.path}}">open source</a>.</p>
|
||||
<p>Project Sponsor:<br/><a href="//www.bandwidthhog.com/?utm_source=sparkle-www&utm_medium=link&utm_campaign=footer">Bandwidth Hog</a> by MaxCDN</p>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user