diff options
author | Humberto Rocha <humrochagf@gmail.com> | 2019-09-19 01:20:26 +0300 |
---|---|---|
committer | Humberto Rocha <humrochagf@gmail.com> | 2019-09-19 01:20:26 +0300 |
commit | 32b3710117df0adc64e2119e8b6da589d9553cc6 (patch) | |
tree | 67ff0aab6eb24ecb186bb214ee03dd1afa674b5d /layouts | |
parent | 3f354e77a43df13c7eb16105cb2a5276ac96169e (diff) |
Fix theme duplicated code and absURL issues
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/header.html | 18 | ||||
-rw-r--r-- | layouts/partials/meta.html | 4 |
2 files changed, 7 insertions, 15 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 8ff1626..2e7fd55 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -9,19 +9,11 @@ </a> </div> - {{ if .IsHome }} - <h1 class="header-title"> - <a href="{{ "/" | absLangURL }}"> - {{ .Site.Title }} - </a> - </h1> - {{ else }} - <div class="header-title"> - <a href="{{ "/" | absLangURL }}"> - {{ .Site.Title }} - </a> - </div> - {{ end }} + <div class="header-title"> + <a href="{{ "/" | absLangURL }}"> + {{ .Site.Title }} + </a> + </div> </div> </div> </header> diff --git a/layouts/partials/meta.html b/layouts/partials/meta.html index 9f984c0..2812653 100644 --- a/layouts/partials/meta.html +++ b/layouts/partials/meta.html @@ -6,8 +6,8 @@ {{ template "_internal/google_analytics_async.html" . }} <!-- Favicons --> -<link rel="icon" type="image/png" href="{{ "/img/favicon-32x32.png" | absURL }}" sizes="32x32" /> -<link rel="icon" type="image/png" href="{{ "/img/favicon-16x16.png" | absURL }}" sizes="16x16" /> +<link rel="icon" type="image/png" href="{{ "img/favicon-32x32.png" | absURL }}" sizes="32x32" /> +<link rel="icon" type="image/png" href="{{ "img/favicon-16x16.png" | absURL }}" sizes="16x16" /> <!-- SEO tags --> <link rel="canonical" href="{{ .Permalink }}" /> |