Skip to content

Commit

Permalink
added rel canonical to head meta datas
Browse files Browse the repository at this point in the history
  • Loading branch information
ololiuhqui committed May 20, 2024
1 parent e7f6ccb commit ebd1c2d
Show file tree
Hide file tree
Showing 17 changed files with 2,198 additions and 14 deletions.
11 changes: 11 additions & 0 deletions assets/js/detectLanguage.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
'use strict';

import params from '@params';

const userLang = navigator.language || navigator.userLanguage;
console.log(params.baseurl);

if (userLang === 'it') {
console.log('language is');
} else {
}
6 changes: 5 additions & 1 deletion layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ <h6 class="text-uppercase fw-bold">

{{ $bootstrap := resources.Get "js/bootstrap.bundle.min.js" }} {{ $js := slice
$bootstrap | resources.Concat "js/bundle.js" | resources.Minify }}

<!-- language-detect script -->
{{- $customJs := resources.Get "js/detectLanguage.js" -}} {{- $js = $js |
js.Build (dict "params" (dict "api" "{{.Site.AbsURL}}api")) -}}
<script type="module" src="{{ $customJs.Permalink }}"></script>
<!-- -->
<script src="{{$js.RelPermalink}}" defer></script>
</footer>
1 change: 1 addition & 0 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<meta name="description" content="{{.Page.Params.params.metaDesc}}" />
<meta name="dc.relation" content="{{ .Site.BaseURL }}" />
<meta name="robots" content="index,follow" />
<link rel="canonical" href="{{ .Permalink }}" />

<!-- Google / Search Engine Tags -->
<meta itemprop="name" content="Erva Kambo - Psicologa" />
Expand Down
4 changes: 3 additions & 1 deletion public/en/contacts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<meta name="description" content="Get in touch with me on email, Whatsapp or social medias." />
<meta name="dc.relation" content="https://ervakambo.com" />
<meta name="robots" content="index,follow" />
<link rel="canonical" href="https://ervakambo.com/en/contacts/" />


<meta itemprop="name" content="Erva Kambo - Psicologa" />
Expand Down Expand Up @@ -485,7 +486,8 @@ <h6 class="text-uppercase fw-bold">




<script type="module" src="https://ervakambo.com/js/detectLanguage.js"></script>

<script src="/js/bundle.min.js" defer></script>
</footer>
</body>
Expand Down
4 changes: 3 additions & 1 deletion public/en/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<meta name="description" content="I like to help people feel understood, face their pain and joy, and find inner strength in difficult moments of their lives." />
<meta name="dc.relation" content="https://ervakambo.com" />
<meta name="robots" content="index,follow" />
<link rel="canonical" href="https://ervakambo.com/en/" />


<meta itemprop="name" content="Erva Kambo - Psicologa" />
Expand Down Expand Up @@ -340,7 +341,8 @@ <h6 class="text-uppercase fw-bold">




<script type="module" src="https://ervakambo.com/js/detectLanguage.js"></script>

<script src="/js/bundle.min.js" defer></script>
</footer>
</body>
Expand Down
4 changes: 3 additions & 1 deletion public/en/office/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<meta name="description" content="You will find a welcoming office in the center of the beautiful city of Florence." />
<meta name="dc.relation" content="https://ervakambo.com" />
<meta name="robots" content="index,follow" />
<link rel="canonical" href="https://ervakambo.com/en/office/" />


<meta itemprop="name" content="Erva Kambo - Psicologa" />
Expand Down Expand Up @@ -324,7 +325,8 @@ <h6 class="text-uppercase fw-bold">




<script type="module" src="https://ervakambo.com/js/detectLanguage.js"></script>

<script src="/js/bundle.min.js" defer></script>
</footer>
</body>
Expand Down
4 changes: 3 additions & 1 deletion public/en/services/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<meta name="description" content=" I offer individual and couples psychological support and consultation. " />
<meta name="dc.relation" content="https://ervakambo.com" />
<meta name="robots" content="index,follow" />
<link rel="canonical" href="https://ervakambo.com/en/services/" />


<meta itemprop="name" content="Erva Kambo - Psicologa" />
Expand Down Expand Up @@ -435,7 +436,8 @@ <h6 class="text-uppercase fw-bold">




<script type="module" src="https://ervakambo.com/js/detectLanguage.js"></script>

<script src="/js/bundle.min.js" defer></script>
</footer>
</body>
Expand Down
4 changes: 3 additions & 1 deletion public/it/contacts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<meta name="description" content="Contattami via e-mail, Whatsapp o sui social media." />
<meta name="dc.relation" content="https://ervakambo.com" />
<meta name="robots" content="index,follow" />
<link rel="canonical" href="https://ervakambo.com/it/contacts/" />


<meta itemprop="name" content="Erva Kambo - Psicologa" />
Expand Down Expand Up @@ -485,7 +486,8 @@ <h6 class="text-uppercase fw-bold">




<script type="module" src="https://ervakambo.com/js/detectLanguage.js"></script>

<script src="/js/bundle.min.js" defer></script>
</footer>
</body>
Expand Down
4 changes: 3 additions & 1 deletion public/it/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<meta name="description" content="Mi piace aiutare le persone a sentirsi comprese, ad affrontare i propri dolori e le proprie gioie, e ritrovare la forza interiore nei momenti difficili della loro vita." />
<meta name="dc.relation" content="https://ervakambo.com" />
<meta name="robots" content="index,follow" />
<link rel="canonical" href="https://ervakambo.com/it/" />


<meta itemprop="name" content="Erva Kambo - Psicologa" />
Expand Down Expand Up @@ -326,7 +327,8 @@ <h6 class="text-uppercase fw-bold">




<script type="module" src="https://ervakambo.com/js/detectLanguage.js"></script>

<script src="/js/bundle.min.js" defer></script>
</footer>
</body>
Expand Down
4 changes: 3 additions & 1 deletion public/it/office/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<meta name="description" content="Troverai un ufficio accogliente nel centro della bellissima città di Firenze." />
<meta name="dc.relation" content="https://ervakambo.com" />
<meta name="robots" content="index,follow" />
<link rel="canonical" href="https://ervakambo.com/it/office/" />


<meta itemprop="name" content="Erva Kambo - Psicologa" />
Expand Down Expand Up @@ -324,7 +325,8 @@ <h6 class="text-uppercase fw-bold">




<script type="module" src="https://ervakambo.com/js/detectLanguage.js"></script>

<script src="/js/bundle.min.js" defer></script>
</footer>
</body>
Expand Down
4 changes: 3 additions & 1 deletion public/it/services/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<meta name="description" content="Offro sostegno e consulenza psicologica individuale e di coppia." />
<meta name="dc.relation" content="https://ervakambo.com" />
<meta name="robots" content="index,follow" />
<link rel="canonical" href="https://ervakambo.com/it/services/" />


<meta itemprop="name" content="Erva Kambo - Psicologa" />
Expand Down Expand Up @@ -435,7 +436,8 @@ <h6 class="text-uppercase fw-bold">




<script type="module" src="https://ervakambo.com/js/detectLanguage.js"></script>

<script src="/js/bundle.min.js" defer></script>
</footer>
</body>
Expand Down
Loading

0 comments on commit ebd1c2d

Please sign in to comment.