Introduction
Introduction Statistics Contact Development Disclaimer Help
tRedirect .dk domain to .com/da/ - andersdamsgaard.com - my photography webpage
git clone git://src.adamsgaard.dk/andersdamsgaard.com
Log
Files
Refs
Submodules
README
LICENSE
---
commit ebac5f83fc1dcba1dce92c96cc2178ca7da78fef
parent 5ad848a6fab9f702066e7c915ad08815f5acf8ac
Author: Anders Damsgaard <[email protected]>
Date: Mon, 5 Nov 2018 14:41:39 +0100
Redirect .dk domain to .com/da/
Diffstat:
M Makefile | 4 ++--
M themes/tale-mod/layouts/partials/h… | 10 +++-------
2 files changed, 5 insertions(+), 9 deletions(-)
---
diff --git a/Makefile b/Makefile
t@@ -61,7 +61,7 @@ generate-letsencrypt-certificate:
sudo chown -R ad ~/.password-store/website
@echo "Certificate is fullchain.pem, key (PEM) is privkey.pem"
-.PHONY: generate-letsencrypt-certificate
-generate-letsencrypt-certificate:
+.PHONY: renew-letsencrypt-certificate
+renew-letsencrypt-certificate:
sudo certbot renew
diff --git a/themes/tale-mod/layouts/partials/head.html b/themes/tale-mod/layou…
t@@ -16,15 +16,11 @@
</title>
<script type="text/javascript">
- $(document).ready(function () {
- if(window.location.href.indexOf("andersdamsgaard.dk") > -1) {
+ if (window.location.href.indexOf("andersdamsgaard.dk") > -1) {
url=window.location.href;
- if(url.substr(url.indexOf('=')+1)=="andersdamsgaard.dk") {
- url=url.replace("andersdamsgaard.dk","andersdamsgaard.com/…
- window.location.replace(url);
- }
+ url=url.replace("andersdamsgaard.dk","andersdamsgaard.com/da/"…
+ window.location.replace(url);
}
- });
</script>
<!-- CSS -->
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.