Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/devcows/hugo-universal-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Rogers <7007561+rogerssam@users.noreply.github.com>2018-08-14 11:29:07 +0300
committerGuillermo Guerrero Ibarra <wolf.fox1985@gmail.com>2018-08-14 11:29:07 +0300
commitecd4366c7cbf336c190c6e75e48ed455497103d8 (patch)
treeba49da2d097cd428bd75fdfc1c07226263b3139d
parent3e3e7f27c010da0dc74dc557dddddd9e90855f4a (diff)
Fixed favicon not updating (#165)
* Fixed favicon not updating Missing / prevented favicon being found and updating. * Updated with relURL Changed favicon to use relURL function. * Updated css links to relative URLs
-rw-r--r--layouts/partials/head.html16
1 files changed, 8 insertions, 8 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 2651fc9..4f0293a 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -27,18 +27,18 @@
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<!-- Css animations -->
- <link href="{{ .Site.BaseURL }}css/animate.css" rel="stylesheet">
+ <link href="{{ "css/animate.css" | relURL}}" rel="stylesheet">
<!-- Theme stylesheet, if possible do not edit this stylesheet -->
{{ if and (isset .Site.Params "style") .Site.Params.style }}
- <link href="{{ .Site.BaseURL }}css/style.{{ .Site.Params.style }}.css" rel="stylesheet" id="theme-stylesheet">
+ <link href="{{ "css/style" | relURL}}.{{ .Site.Params.style }}.css" rel="stylesheet" id="theme-stylesheet">
{{ else }}
- <link href="{{ .Site.BaseURL }}css/style.default.css" rel="stylesheet" id="theme-stylesheet">
+ <link href="{{ "css/style.default.css" | relURL}}" rel="stylesheet" id="theme-stylesheet">
{{ end }}
<!-- Custom stylesheet - for your changes -->
- <link href="{{ .Site.BaseURL }}css/custom.css" rel="stylesheet">
+ <link href="{{ "css/custom.css" | relURL}}" rel="stylesheet">
<!-- Responsivity for older IE -->
{{ `
@@ -49,12 +49,12 @@
` | safeHTML }}
<!-- Favicon and apple touch icons-->
- <link rel="shortcut icon" href="{{ .Site.BaseURL }}img/favicon.ico" type="image/x-icon" />
- <link rel="apple-touch-icon" href="{{ .Site.BaseURL }}img/apple-touch-icon.png" />
+ <link rel="shortcut icon" href="{{ "img/favicon.ico" | relURL }}" type="image/x-icon" />
+ <link rel="apple-touch-icon" href="{{ "img/apple-touch-icon.png" | relURL }}" />
<!-- owl carousel css -->
- <link href="{{ .Site.BaseURL }}css/owl.carousel.css" rel="stylesheet">
- <link href="{{ .Site.BaseURL }}css/owl.theme.css" rel="stylesheet">
+ <link href="{{ "css/owl.carousel.css" | relURL}}" rel="stylesheet">
+ <link href="{{ "css/owl.theme.css" | relURL}}" rel="stylesheet">
<link rel="alternate" href="{{ "/index.xml" | absURL }}" type="application/rss+xml" title="{{ .Site.Title }}">