diff options
author | Kuba <kuba.serafinowski@gmail.com> | 2019-07-28 21:04:25 +0300 |
---|---|---|
committer | Kuba <kuba.serafinowski@gmail.com> | 2019-07-31 23:10:14 +0300 |
commit | 1cf4ef36bda2b5d4f77cc55a793d1b9317f03a7e (patch) | |
tree | adc88348704dfb70561283de491c824d3f63c975 /layouts | |
parent | 310a0b75c720b5dd963121393b310bb9bf54cd02 (diff) |
use relURL instead of appending to baseURL and add missing trailing slashes to internal links to avoid unnecessary redirects
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/baseof.html | 4 | ||||
-rw-r--r-- | layouts/index.html | 4 | ||||
-rw-r--r-- | layouts/partials/call.html | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 5fc3991..f62e235 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -7,7 +7,7 @@ <title>{{ block "title" . }}{{ .Title }} - {{ .Site.Title }}{{ end }}</title> <meta name="viewport" content="width=device-width, initial-scale=1"> {{ block "meta_tags" . }}{{end}} - <link rel="icon" href="{{ .Site.BaseURL }}favicon-32x32.png"> + <link rel="icon" href="{{ "favicon-32x32.png" | relURL }}"> <!-- CSS--> {{ if .Site.IsServer }} @@ -52,4 +52,4 @@ <link href="https://fonts.googleapis.com/css?family=DM+Serif+Display&display=swap" rel="stylesheet"> </body> -</html>
\ No newline at end of file +</html> diff --git a/layouts/index.html b/layouts/index.html index 57fcc87..79f75a0 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -45,7 +45,7 @@ </div> {{ end }} <div class="col-12 text-center"> - <a class="button button-primary" href="{{ .Site.BaseURL }}services">View All Services</a> + <a class="button button-primary" href="{{ "services/" | relURL }}">View All Services</a> </div> </div> </div> @@ -73,4 +73,4 @@ {{ end }} {{ define "footer_js" }} -{{ end }}
\ No newline at end of file +{{ end }} diff --git a/layouts/partials/call.html b/layouts/partials/call.html index aa19f89..9e342c7 100644 --- a/layouts/partials/call.html +++ b/layouts/partials/call.html @@ -8,6 +8,6 @@ </div> </div> <div class="call-box-bottom"> - <a href="{{ .Site.BaseURL }}contact" class="button">Contact</a> + <a href="{{ "contact/" | relURL }}" class="button">Contact</a> </div> -</div>
\ No newline at end of file +</div> |