mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-11-17 13:25:57 -06:00
Fix URLs for baseURLs that are on a subpath
This commit is contained in:
parent
edff1f416d
commit
4e9ce6df46
@ -17,8 +17,8 @@ enableGitInfo = true
|
|||||||
description = "Example website for bobatheme"
|
description = "Example website for bobatheme"
|
||||||
|
|
||||||
# these are for favicons in bobatheme
|
# these are for favicons in bobatheme
|
||||||
faviconICO = "/favicon.ico"
|
faviconICO = "favicon.ico"
|
||||||
faviconPNG = "/favicon.png"
|
faviconPNG = "favicon.png"
|
||||||
|
|
||||||
# show word count and/or reading time (enabled by default)
|
# show word count and/or reading time (enabled by default)
|
||||||
wordcount = true
|
wordcount = true
|
||||||
|
@ -47,7 +47,7 @@
|
|||||||
{{ with .GitInfo }}
|
{{ with .GitInfo }}
|
||||||
<span class="post-meta-item">
|
<span class="post-meta-item">
|
||||||
{{ partial "icon.html" "git-commit" }}
|
{{ partial "icon.html" "git-commit" }}
|
||||||
<a href="{{ (printf "%s/commit/%s" $.Site.Params.repoURL .Hash) | absLangURL }}">
|
<a href="{{ (printf "%s/commit/%s" $.Site.Params.repoURL .Hash) | absURL }}">
|
||||||
<code>{{ .AbbreviatedHash }}</code>
|
<code>{{ .AbbreviatedHash }}</code>
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
<h2 class="header">
|
<h2 class="header">
|
||||||
<a href="{{ "/" | absLangURL }}">{{ .Site.Title | markdownify }}</a>
|
<a href="{{ .Site.Home.Permalink | absLangURL }}">{{ .Site.Title | markdownify }}</a>
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<nav class="navbar">
|
<nav class="navbar">
|
||||||
{{ with .Site.GetPage "/" }}
|
{{ with .Site.Home }}
|
||||||
<a class="navbar-item" href="{{ .Permalink | absLangURL }}">{{ .Title }}</a>
|
<a class="navbar-item" href="{{ .Permalink | absLangURL }}">{{ .Title }}</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ range .Site.Menus.main }}
|
{{ range .Site.Menus.main }}
|
||||||
<a class="navbar-item" href="{{ .URL | absLangURL }}">{{ .Name }}</a>
|
<a class="navbar-item" href="{{ .URL }}">{{ .Name }}</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user