Browse Source

modified navigation

pull/139/head
somratpro 4 years ago
parent
commit
a92877642d

+ 17
- 10
exampleSite/config.toml View File

############################# Navigation ################################## ############################# Navigation ##################################
[[menu.main]] [[menu.main]]
name = "about" name = "about"
URL = "about"
pre = "#"
url = "about"
weight = 1 weight = 1


[[menu.main]] [[menu.main]]
name = "services" name = "services"
URL = "services"
pre = "#"
url = "services"
weight = 2 weight = 2


[[menu.main]] [[menu.main]]
name = "portfolio" name = "portfolio"
URL = "portfolio"
pre = "#"
url = "portfolio"
weight = 3 weight = 3


[[menu.main]] [[menu.main]]
name = "team" name = "team"
URL = "team"
pre = "#"
url = "team"
weight = 4 weight = 4


[[menu.main]] [[menu.main]]
name = "pricing" name = "pricing"
URL = "pricing"
pre = "#"
url = "pricing"
weight = 5 weight = 5


[[menu.main]] [[menu.main]]
name = "blog" name = "blog"
URL = "blog"
pre = "#"
url = "blog"
weight = 6 weight = 6


[[menu.main]] [[menu.main]]
name = "contact" name = "contact"
URL = "contact"
pre = "#"
url = "contact"
weight = 7 weight = 7


#### external / static link ####
[[menu.static]]
[[menu.main]]
name = "themefisher" name = "themefisher"
URL = "https://themefisher.com/"
pre = ""
url = "https://themefisher.com/"
weight = 8 weight = 8


############################# Default Parameters ########################## ############################# Default Parameters ##########################

+ 2
- 16
layouts/partials/navigation.html View File



<div class="collapse navbar-collapse" id="navigation"> <div class="collapse navbar-collapse" id="navigation">
<ul class="navbar-nav ml-auto"> <ul class="navbar-nav ml-auto">
<li class="nav-item"><a class="nav-link" href="#body">{{ site.Params.home }}</a></li>
{{ if .IsHome }}
{{ range site.Menus.main }} {{ range site.Menus.main }}
<li class="nav-item"><a class="nav-link" href="#{{ .URL }}">{{ i18n .Name }}</a></li>
{{ end }}

{{ else }}

{{ range site.Menus.main }}
<li class="nav-item"><a class="nav-link" href="{{ site.BaseURL | relLangURL }}#{{ .URL }}">{{ i18n .Name }}</a>
<li class="nav-item">
<a class="nav-link" href="{{if .Pre}}{{site.BaseURL | absLangURL}}{{.Pre}}{{ .URL }}{{else}}{{.URL | absLangURL}}{{end}}">{{ .Name }}</a>
</li> </li>
{{ end }} {{ end }}
{{ end }}

{{ range site.Menus.static }}
<li class="nav-item"><a class="nav-link" target="_blank" href="{{ .URL }}">{{ i18n .Name }}</a>
</li>
{{ end }}

</ul> </ul>
<!-- Language List --> <!-- Language List -->
{{- if site.IsMultiLingual }} {{- if site.IsMultiLingual }}

+ 1
- 1
static/plugins/themify-icons/themify-icons.css
File diff suppressed because it is too large
View File


Loading…
Cancel
Save