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
port: 4000
baseurl: /
url: http://arcanis.name
url: https://arcanis.name
enforce_ssl: arcanis.name
lsi: false
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="ie" value="UTF-8">
{% if page.category == "ru" %}
@ -16,4 +16,4 @@
<input type="submit" name="sa" value="Search" class="form-submit">
</div>
{% endif %}
</form>
</form>

View File

@ -1,3 +1,3 @@
<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>

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');
</script>
<![endif]-->
{% include ssl-redirect.html %}
{% include google_analytics.html %}
{% if page.share == true %}
{% include header_sharethis.html %}

View File

@ -464,7 +464,7 @@ small {
<h2><a href="#links" class="anchor" id="links"></a>External links</h2>
<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/issues">Bugtracker</a></li>
</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>
<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/issues">Bugtracker</a></li>
</ul>

View File

@ -23,7 +23,7 @@ title: arcanis' homepage
</span>
</label>
<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>
{% include cse.html %}
@ -34,7 +34,7 @@ title: arcanis' homepage
if (window.location.replace) window.location.replace(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
if (languageinfo.substr(0,2) == "ru") redirectpage("/ru/")
}

View File

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

View File

@ -24,7 +24,7 @@ title: arcanis
</span>
</label>
<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>
{% include cse.html %}

View File

@ -10,52 +10,52 @@ projects:
<?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">
<url>
<loc>http://arcanis.name/</loc>
<loc>{{ site.url }}</loc>
</url>
<url>
<loc>http://arcanis.name/ru/</loc>
<loc>{{ site.url }}ru/</loc>
</url>
<url>
<loc>http://arcanis.name/about/</loc>
<loc>{{ site.url }}about/</loc>
</url>
<url>
<loc>http://arcanis.name/ru/about/</loc>
<loc>{{ site.url }}ru/about/</loc>
</url>
<url>
<loc>http://arcanis.name/authors/</loc>
<loc>{{ site.url }}authors/</loc>
</url>
<url>
<loc>http://arcanis.name/ru/authors/</loc>
<loc>{{ site.url }}ru/authors/</loc>
</url>
<url>
<loc>http://arcanis.name/blog/</loc>
<loc>{{ site.url }}blog/</loc>
</url>
<url>
<loc>http://arcanis.name/ru/blog/</loc>
<loc>{{ site.url }}ru/blog/</loc>
</url>
<url>
<loc>http://arcanis.name/blog/archive/</loc>
<loc>{{ site.url }}blog/archive/</loc>
</url>
<url>
<loc>http://arcanis.name/ru/blog/archive/</loc>
<loc>{{ site.url }}ru/blog/archive/</loc>
</url>
{% for post in site.posts %}
<url>
<loc>http://arcanis.name{{ post.url }}</loc>
<loc>{{ site.url }}{{ post.url }}</loc>
</url>
{% endfor %}
<url>
<loc>http://arcanis.name/projects/</loc>
<loc>{{ site.url }}projects/</loc>
</url>
<url>
<loc>http://arcanis.name/ru/projects/</loc>
<loc>{{ site.url }}ru/projects/</loc>
</url>
{% for proj in page.projects %}
<url>
<loc>http://arcanis.name/projects/{{ proj }}/</loc>
<loc>{{ site.url }}projects/{{ proj }}/</loc>
</url>
<url>
<loc>http://arcanis.name/ru/projects/{{ proj }}/</loc>
<loc>{{ site.url }}ru/projects/{{ proj }}/</loc>
</url>
{% endfor %}
</urlset>