mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-12-22 12:13:19 -06:00
Use absolute URLs in a couple cases where relative ones were used
This commit is contained in:
parent
e7f9240383
commit
a02da46706
@ -8,10 +8,10 @@
|
||||
{{ end }}
|
||||
|
||||
{{ with .Site.Params.faviconICO }}
|
||||
<link rel="icon" type="image/x-icon" href="{{.}}" />
|
||||
<link rel="icon" type="image/x-icon" href="{{ . | absURL }}" />
|
||||
{{ end }}
|
||||
{{ with .Site.Params.faviconPNG }}
|
||||
<link rel="icon" type="image/png" href="{{.}}" />
|
||||
<link rel="icon" type="image/png" href="{{ . | absURL }}" />
|
||||
{{ end }}
|
||||
|
||||
{{ range .AlternativeOutputFormats -}}
|
||||
|
@ -1,15 +1,14 @@
|
||||
<h2 class="header">
|
||||
<a href="{{ "/" | relURL }}">{{ .Site.Title | markdownify }}</a>
|
||||
<a href="{{ "/" | absLangURL }}">{{ .Site.Title | markdownify }}</a>
|
||||
</h2>
|
||||
|
||||
<nav class="navbar">
|
||||
{{ with .Site.GetPage "/" }}
|
||||
{{/* if I use relLangURL, then it does /es/es/ instead of /es/ (for example) */}}
|
||||
<a class="navbar-item" href="{{ .Permalink | relURL }}">{{ .Title }}</a>
|
||||
<a class="navbar-item" href="{{ .Permalink | absLangURL }}">{{ .Title }}</a>
|
||||
{{ end }}
|
||||
|
||||
{{ range .Site.Menus.main }}
|
||||
<a class="navbar-item" href="{{ .URL }}">{{ .Name }}</a>
|
||||
<a class="navbar-item" href="{{ .URL | absLangURL }}">{{ .Name }}</a>
|
||||
{{ end }}
|
||||
</nav>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user