diff --git a/_layouts/default.html b/_layouts/default.html index 13a212f..5038732 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -4,6 +4,7 @@ + {% if page.title %} {{ page.title }} - {% endif %} {{ site.title }} @@ -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; + } //]]> @@ -59,8 +65,8 @@