Pārlūkot izejas kodu

modified navigation

pull/139/head
somratpro pirms 4 gadiem
vecāks
revīzija
a92877642d

+ 17
- 10
exampleSite/config.toml Parādīt failu

@@ -43,43 +43,50 @@ link = "plugins/google-map/map.js"
############################# Navigation ##################################
[[menu.main]]
name = "about"
URL = "about"
pre = "#"
url = "about"
weight = 1

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

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

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

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

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

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

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

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

+ 2
- 16
layouts/partials/navigation.html Parādīt failu

@@ -15,25 +15,11 @@

<div class="collapse navbar-collapse" id="navigation">
<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 }}
<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>
{{ end }}
{{ end }}

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

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

+ 1
- 1
static/plugins/themify-icons/themify-icons.css
Failā izmaiņas netiks attēlotas, jo tās ir par lielu
Parādīt failu


Notiek ielāde…
Atcelt
Saglabāt