mirror of
				https://github.com/BBaoVanC/bobatheme.git
				synced 2025-10-31 10:03:30 -05:00 
			
		
		
		
	Don't force the homepage to be named "Home" on the navbar
This commit is contained in:
		| @@ -3,7 +3,11 @@ | ||||
| </h2> | ||||
|  | ||||
| <nav id="navbar"> | ||||
|     <a class="navbar-item" href="{{ "/" | relLangURL }}">Home</a> | ||||
|     {{ 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> | ||||
|     {{ end }} | ||||
|  | ||||
|     {{ range .Site.Menus.main }} | ||||
|     <a class="navbar-item" href="{{ .URL }}">{{ .Name }}</a> | ||||
|     {{ end }} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user