diff options
author | athul <athul8720@gmail.com> | 2020-04-12 18:01:09 +0300 |
---|---|---|
committer | athul <athul8720@gmail.com> | 2020-04-12 18:01:09 +0300 |
commit | 7d19d8b66a0720298c4a05df70a2db634b034b90 (patch) | |
tree | 557b102418b7e32c5b0c869f8afcb8c6663534b0 | |
parent | b22ea86f5ea26edeeddb29bc12b0f4a9fb284d22 (diff) |
NavBar Updates
-rw-r--r-- | exampleSite/config.toml | 19 | ||||
-rw-r--r-- | layouts/_default/terms.html | 5 | ||||
-rw-r--r-- | layouts/partials/footer.html | 3 | ||||
-rw-r--r-- | layouts/partials/head.html | 6 | ||||
-rw-r--r-- | static/css/main.css | 5 |
5 files changed, 32 insertions, 6 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 8671583..75bfe5a 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -24,3 +24,22 @@ url = "https://github.com/athulcajay/" name = "GitLab" icon = "gitlab" url = "https://gitlab.com/athul/" +[[menu.main]] +name = "Home" +url = "/" +weight = 1 + +[[menu.main]] +name = "All posts" +url = "/posts" +weight = 2 + +[[menu.main]] +name = "About" +url = "/about" +weight = 3 + +[[menu.main]] +name = "Tags" +url = "/tags" +weight = 4
\ No newline at end of file diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html index 940b402..92330b1 100644 --- a/layouts/_default/terms.html +++ b/layouts/_default/terms.html @@ -22,9 +22,10 @@ <a style="font-size: {{ $size }}rem;" href="{{ $.Site.LanguagePrefix | absURL }}{{ $data.Plural }}/{{ $value.Name | urlize }}/">{{ $value.Name }}</a> {{ end }} </div> - </div> - + +<hr> {{ partial "footer.html" . }} + </div> </body> </html> diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index ab21fa6..106446c 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,4 +1,7 @@ <footer> +{{- range $index, $key := .Site.Params.Social -}} +<a class="soc" href="{{ $key.url }}" title="{{ $key.name }}"><i data-feather="{{ $key.icon }}"></i></a>| +{{- end -}} ⚡️ {{ .Date.Year}} {{ with .Site.Copyright }} {{ . }} | {{ end }} <a href="https://github.com/athul/archie">Archie Theme</a> | Built with <a href="https://gohugo.io">Hugo</a> </footer> {{ if not .Site.IsServer }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 3334e09..00c79da 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -4,8 +4,8 @@ <a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a> </div> <nav> -{{- range $index, $key := .Site.Params.Social -}} -<a class="soc" href="{{ $key.url }}" title="{{ $key.name }}"><i data-feather="{{ $key.icon }}"></i></a>| -{{- end -}} ⚡️ + {{ range .Site.Menus.main }} + <a href="{{ .URL }}">{{ .Name }}</a> + {{ end }} </nav> </header>
\ No newline at end of file diff --git a/static/css/main.css b/static/css/main.css index 3bca25f..cf4a25b 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -205,7 +205,10 @@ justify-content: space-between; content: "🏷 "; } .tags a{ - border-bottom: 3px solid blue; + border-bottom: 3px solid var(--maincolor); +} +.tags a:hover{ + color: var(--hovercolor); } svg{ max-height: 15px; |