all repos — archie @ 7d19d8b66a0720298c4a05df70a2db634b034b90

A minimal Hugo Theme

NavBar Updates
athul athul8720@gmail.com
Sun, 12 Apr 2020 20:31:09 +0530
commit

7d19d8b66a0720298c4a05df70a2db634b034b90

parent

b22ea86f5ea26edeeddb29bc12b0f4a9fb284d22

M exampleSite/config.tomlexampleSite/config.toml

@@ -24,3 +24,22 @@ [[params.social]]

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
M layouts/_default/terms.htmllayouts/_default/terms.html

@@ -22,9 +22,10 @@ {{ $size := (cond (eq $biggest $smallest) $min $size) }}

<a style="font-size: {{ $size }}rem;" href="{{ $.Site.LanguagePrefix | absURL }}{{ $data.Plural }}/{{ $value.Name | urlize }}/">{{ $value.Name }}</a> {{ end }} </div> + +<hr> + {{ partial "footer.html" . }} </div> - - {{ partial "footer.html" . }} </body> </html>
M layouts/partials/footer.htmllayouts/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 }}
M layouts/partials/head.htmllayouts/partials/head.html

@@ -4,8 +4,8 @@ <div class="main">

<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>
M static/css/main.cssstatic/css/main.css

@@ -205,7 +205,10 @@ .tags li::before{

content: "🏷 "; } .tags a{ - border-bottom: 3px solid blue; + border-bottom: 3px solid var(--maincolor); +} +.tags a:hover{ + color: var(--hovercolor); } svg{ max-height: 15px;