Fix navbar
This commit is contained in:
parent
52316b6c9b
commit
f3c564e297
12
config.toml
12
config.toml
@ -2,14 +2,4 @@ baseURL = "https://bbaovanc.com/blog/"
|
||||
languageCode = "en-us"
|
||||
title = "bbaovanc's blog"
|
||||
theme = "bbaovanc"
|
||||
sectionPagesMenu = "navigation"
|
||||
|
||||
[menu]
|
||||
[[menu.main]]
|
||||
identifier = "home"
|
||||
name = "Home"
|
||||
url = "/"
|
||||
[[menu.main]]
|
||||
identifier = "posts"
|
||||
name = "Posts"
|
||||
url = "/posts"
|
||||
sectionPagesMenu = "main"
|
||||
|
9
disabled_config.toml
Normal file
9
disabled_config.toml
Normal file
@ -0,0 +1,9 @@
|
||||
[menu]
|
||||
[[menu.main]]
|
||||
identifier = "home"
|
||||
name = "Home"
|
||||
url = "/"
|
||||
[[menu.main]]
|
||||
identifier = "posts"
|
||||
name = "Posts"
|
||||
url = "/posts"
|
@ -1,4 +1,12 @@
|
||||
<div class="header">
|
||||
<h1>{{ .Site.Title }}</h1>
|
||||
</div>
|
||||
{{ partial "navbar.html" }}
|
||||
|
||||
<div class="navbar">
|
||||
<a href="{{ .Site.BaseURL }}">Home</a>
|
||||
{{ $currentPage := . }}
|
||||
{{ range .Site.Menus.main }}
|
||||
<a class="sidebar-nav-item{{if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }} active{{end}}" href="{{ .URL }}" title="{{ .Title }}">{{ .Name }}</a>
|
||||
{{ end }}
|
||||
<a href="https://bbaovanc.com" rel="noreferrer" target="_blank">Main Site</a>
|
||||
</div>
|
||||
|
@ -1,5 +0,0 @@
|
||||
<div class="navbar">
|
||||
<a href="/blog/">Home</a>
|
||||
<a href="/blog/posts/">Posts</a>
|
||||
<a href="https://bbaovanc.com" rel="noreferrer" target="_blank">Main Site</a>
|
||||
</div>
|
Loading…
Reference in New Issue
Block a user