try to move to https

This commit is contained in:
arcan1s 2015-08-08 23:19:38 +03:00
parent 61173774e0
commit eb62296aba
11 changed files with 33 additions and 25 deletions

View File

@ -26,7 +26,8 @@ safe: false
host: 0.0.0.0 host: 0.0.0.0
port: 4000 port: 4000
baseurl: / baseurl: /
url: http://arcanis.name url: https://arcanis.name
enforce_ssl: arcanis.name
lsi: false lsi: false
maruku: maruku:

View File

@ -1,4 +1,4 @@
<form action="http://www.google.ru/cse" id="search-block-form" name="gcse"> <form action="https://www.google.ru/cse" id="search-block-form" name="gcse">
<input type="hidden" name="cx" value="000833618047197874644:rilf4jpvgyo"> <input type="hidden" name="cx" value="000833618047197874644:rilf4jpvgyo">
<input type="hidden" name="ie" value="UTF-8"> <input type="hidden" name="ie" value="UTF-8">
{% if page.category == "ru" %} {% if page.category == "ru" %}

View File

@ -1,3 +1,3 @@
<script type="text/javascript">var switchTo5x=false;</script> <script type="text/javascript">var switchTo5x=false;</script>
<script src="http://w.sharethis.com/button/buttons.js" type="text/javascript"></script> <script src="https://ws.sharethis.com/button/buttons.js" type="text/javascript"></script>
<script type="text/javascript">stLight.options({publisher: "70dd9cde-7276-47af-8de7-9c43883daf2b", doNotHash: false, doNotCopy: false, hashAddressBar: false});</script> <script type="text/javascript">stLight.options({publisher: "70dd9cde-7276-47af-8de7-9c43883daf2b", doNotHash: false, doNotCopy: false, hashAddressBar: false});</script>

View File

@ -0,0 +1,6 @@
<script type="text/javascript">
var host = "arcanis.name";
if ((host == window.location.host) && (window.location.protocol != "https:"))
window.location.protocol = "https";
</script>

View File

@ -26,6 +26,7 @@
document.createElement('figcaption'); document.createElement('figcaption');
</script> </script>
<![endif]--> <![endif]-->
{% include ssl-redirect.html %}
{% include google_analytics.html %} {% include google_analytics.html %}
{% if page.share == true %} {% if page.share == true %}
{% include header_sharethis.html %} {% include header_sharethis.html %}

View File

@ -464,7 +464,7 @@ small {
<h2><a href="#links" class="anchor" id="links"></a>External links</h2> <h2><a href="#links" class="anchor" id="links"></a>External links</h2>
<ul> <ul>
<li><a href="http://arcanis.name/projects/netctl-gui/">Homepage</a></li> <li><a href="https://arcanis.name/projects/netctl-gui/">Homepage</a></li>
<li><a href="https://github.com/arcan1s/netctl-gui">Repository</a></li> <li><a href="https://github.com/arcan1s/netctl-gui">Repository</a></li>
<li><a href="https://github.com/arcan1s/netctl-gui/issues">Bugtracker</a></li> <li><a href="https://github.com/arcan1s/netctl-gui/issues">Bugtracker</a></li>
</ul> </ul>

View File

@ -98,7 +98,7 @@ env -i bash -c "source '&lt;profile&gt;'; for i in &#36;{!&lt;key&gt;[@]}; do ec
<h2><a href="#links" class="anchor" id="links"></a>External links</h2> <h2><a href="#links" class="anchor" id="links"></a>External links</h2>
<ul> <ul>
<li><a href="http://arcanis.name/projects/netctl-gui/">Homepage</a></li> <li><a href="https://arcanis.name/projects/netctl-gui/">Homepage</a></li>
<li><a href="https://github.com/arcan1s/netctl-gui">Repository</a></li> <li><a href="https://github.com/arcan1s/netctl-gui">Repository</a></li>
<li><a href="https://github.com/arcan1s/netctl-gui/issues">Bugtracker</a></li> <li><a href="https://github.com/arcan1s/netctl-gui/issues">Bugtracker</a></li>
</ul> </ul>

View File

@ -23,7 +23,7 @@ title: arcanis' homepage
</span> </span>
</label> </label>
<p class="view"><a href="/projects/" title="Projects">Projects</a><br> <p class="view"><a href="/projects/" title="Projects">Projects</a><br>
<a href="http://repo.arcanis.name/" title="Repository">Repository</a><br> <a href="https://repo.arcanis.name/" title="Repository">Repository</a><br>
<p class="view"><a href="/about" title="About">About me</a></p> <p class="view"><a href="/about" title="About">About me</a></p>
{% include cse.html %} {% include cse.html %}
@ -34,7 +34,7 @@ title: arcanis' homepage
if (window.location.replace) window.location.replace(dest) if (window.location.replace) window.location.replace(dest)
else window.location=dest else window.location=dest
} }
if (document.referrer != "http://arcanis.name/ru/") { if (document.referrer != "{{ site.url }}ru/") {
var languageinfo=navigator.language? navigator.language : navigator.userLanguage var languageinfo=navigator.language? navigator.language : navigator.userLanguage
if (languageinfo.substr(0,2) == "ru") redirectpage("/ru/") if (languageinfo.substr(0,2) == "ru") redirectpage("/ru/")
} }

View File

@ -1,3 +1,3 @@
User-agent: * User-agent: *
Disallow: /devs Disallow: /devs
Sitemap: http://arcanis.name/sitemap.xml Sitemap: https://arcanis.name/sitemap.xml

View File

@ -24,7 +24,7 @@ title: arcanis
</span> </span>
</label> </label>
<p class="view"><a href="/ru/projects/" title="Проекты">Проекты</a><br> <p class="view"><a href="/ru/projects/" title="Проекты">Проекты</a><br>
<a href="http://repo.arcanis.name/" title="Репозиторий">Репозиторий</a><br> <a href="https://repo.arcanis.name/" title="Репозиторий">Репозиторий</a><br>
<p class="view"><a href="/ru/about" title="Обо мне">Обо мне</a></p> <p class="view"><a href="/ru/about" title="Обо мне">Обо мне</a></p>
{% include cse.html %} {% include cse.html %}

View File

@ -10,52 +10,52 @@ projects:
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url> <url>
<loc>http://arcanis.name/</loc> <loc>{{ site.url }}</loc>
</url> </url>
<url> <url>
<loc>http://arcanis.name/ru/</loc> <loc>{{ site.url }}ru/</loc>
</url> </url>
<url> <url>
<loc>http://arcanis.name/about/</loc> <loc>{{ site.url }}about/</loc>
</url> </url>
<url> <url>
<loc>http://arcanis.name/ru/about/</loc> <loc>{{ site.url }}ru/about/</loc>
</url> </url>
<url> <url>
<loc>http://arcanis.name/authors/</loc> <loc>{{ site.url }}authors/</loc>
</url> </url>
<url> <url>
<loc>http://arcanis.name/ru/authors/</loc> <loc>{{ site.url }}ru/authors/</loc>
</url> </url>
<url> <url>
<loc>http://arcanis.name/blog/</loc> <loc>{{ site.url }}blog/</loc>
</url> </url>
<url> <url>
<loc>http://arcanis.name/ru/blog/</loc> <loc>{{ site.url }}ru/blog/</loc>
</url> </url>
<url> <url>
<loc>http://arcanis.name/blog/archive/</loc> <loc>{{ site.url }}blog/archive/</loc>
</url> </url>
<url> <url>
<loc>http://arcanis.name/ru/blog/archive/</loc> <loc>{{ site.url }}ru/blog/archive/</loc>
</url> </url>
{% for post in site.posts %} {% for post in site.posts %}
<url> <url>
<loc>http://arcanis.name{{ post.url }}</loc> <loc>{{ site.url }}{{ post.url }}</loc>
</url> </url>
{% endfor %} {% endfor %}
<url> <url>
<loc>http://arcanis.name/projects/</loc> <loc>{{ site.url }}projects/</loc>
</url> </url>
<url> <url>
<loc>http://arcanis.name/ru/projects/</loc> <loc>{{ site.url }}ru/projects/</loc>
</url> </url>
{% for proj in page.projects %} {% for proj in page.projects %}
<url> <url>
<loc>http://arcanis.name/projects/{{ proj }}/</loc> <loc>{{ site.url }}projects/{{ proj }}/</loc>
</url> </url>
<url> <url>
<loc>http://arcanis.name/ru/projects/{{ proj }}/</loc> <loc>{{ site.url }}ru/projects/{{ proj }}/</loc>
</url> </url>
{% endfor %} {% endfor %}
</urlset> </urlset>