Skip to content
Snippets Groups Projects
Commit 3768d997 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

added alternate links to each page

parent 363834f3
Branches
No related tags found
2 merge requests!2010Development,!2001Resolve "Improve Localization"
......@@ -4,6 +4,11 @@
<head>
<meta charset="utf-8">
@foreach(LaravelLocalization::getSupportedLocales() as $locale => $locale_data)
@if(LaravelLocalization::getCurrentLocale() !== $locale)
<link rel="alternate" hreflang="{{ $locale }}" href="{{ LaravelLocalization::getLocalizedUrl($locale, null, [], true) }}">
@endif
@endforeach
<link href="/favicon.ico" rel="icon" type="image/x-icon" />
<link href="/favicon.ico" rel="shortcut icon" type="image/x-icon" />
@foreach(scandir(public_path("img/favicon")) as $file)
......
......@@ -3,4 +3,9 @@
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="/index.css?id={{ $key }}">
<script src="{{ mix('js/index.js') }}"></script>
\ No newline at end of file
<script src="{{ mix('js/index.js') }}"></script>
@foreach(LaravelLocalization::getSupportedLocales() as $locale => $locale_data)
@if(LaravelLocalization::getCurrentLocale() !== $locale)
<link rel="alternate" hreflang="{{ $locale }}" href="{{ LaravelLocalization::getLocalizedUrl($locale, null, [], true) }}">
@endif
@endforeach
\ No newline at end of file
......@@ -13,6 +13,11 @@
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<link href="/favicon.ico" rel="icon" type="image/x-icon" />
<link href="/favicon.ico" rel="shortcut icon" type="image/x-icon" />
@foreach(LaravelLocalization::getSupportedLocales() as $locale => $locale_data)
@if(LaravelLocalization::getCurrentLocale() !== $locale)
<link rel="alternate" hreflang="{{ $locale }}" href="{{ LaravelLocalization::getLocalizedUrl($locale, null, [], true) }}">
@endif
@endforeach
@foreach(scandir(public_path("img/favicon")) as $file)
@if(in_array($file, [".", ".."]))
@continue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment