Skip to content

Commit 30a6e15

Browse files
committed
improve SEO on landing page
1 parent 47f8e58 commit 30a6e15

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

_includes/hreflang.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,5 @@
3636

3737
{%- comment -%} x-default -> point to English base (customize if you prefer other default) {%- endcomment -%}
3838
{%- assign en = site.data.languages | where: "code","en" | first -%}
39-
<link rel="alternate" hreflang="x-default" href="{{ en.path | absolute_url }}" />
39+
{%- comment -%} <link rel="alternate" hreflang="x-default" href="{{ en.path | absolute_url }}" /> {%- endcomment -%}
40+
<link rel="alternate" hreflang="x-default" href="https://poml88.github.io/FLwatch/" />

index.html

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
description: "FLwatch displays your LibreLinkUp glucose readings on iPhone and Apple Watch. Open-source app with insulin-on-board calculation and widgets."
55
permalink: /index.html
66
image: /assets/images/app-preview-optimized.png
7-
canonical_url: https://poml88.github.io/FLwatch/en/
7+
canonical_url: https://poml88.github.io/FLwatch/
88
comment: SEO copied from English page - check from time to time
99
sitemap: false
1010
---
@@ -13,7 +13,6 @@
1313
<head>
1414
<meta charset="utf-8">
1515
<meta name="viewport" content="width=device-width, initial-scale=1">
16-
<meta http-equiv="refresh" content="0; url={{ site.baseurl }}/en/">
1716

1817

1918
<!-- SEO -->
@@ -26,7 +25,7 @@
2625

2726

2827
<!-- App-specific meta (kept outside seo tag) -->
29-
<meta name="robots" content="max-image-preview:large">
28+
<meta name="robots" content="index, follow">
3029
<meta name="apple-itunes-app" content="app-id=6670172928">
3130
<link rel="icon" href="/FLwatch/assets/img/favicon.ico">
3231
<link rel="apple-touch-icon" href="/FLwatch/assets/img/apple-touch-icon.png">
@@ -61,6 +60,11 @@
6160

6261
<script>
6362
(function(){
63+
const isBot = /googlebot|bingbot|yandex|duckduckbot|baiduspider/i
64+
.test(navigator.userAgent);
65+
66+
if (isBot) return; // allow indexing
67+
6468
var supported = ['en','de','fr','es','it','ja','zh-Hans'];
6569

6670
function baseFromPath(){
@@ -107,7 +111,7 @@
107111
<a href="{{ site.baseurl }}/de/">Deutsch</a> ·
108112
<a href="{{ site.baseurl }}/fr/">Français</a> ·
109113
<a href="{{ site.baseurl }}/es/">Español</a> ·
110-
<a href="{{ site.baseurl }}/es/">Italiano</a> ·
114+
<a href="{{ site.baseurl }}/it/">Italiano</a> ·
111115
<a href="{{ site.baseurl }}/ja/">日本語</a> ·
112116
<a href="{{ site.baseurl }}/zh-Hans/">简体中文</a>
113117
</p>

0 commit comments

Comments
 (0)