Skip to content

Commit

Permalink
NavBar Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
athul committed Apr 12, 2020
1 parent b22ea86 commit 7d19d8b
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 6 deletions.
19 changes: 19 additions & 0 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 3 additions & 2 deletions layouts/_default/terms.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ <h1 class="page-title">All tags</h1>
<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>
3 changes: 3 additions & 0 deletions layouts/partials/footer.html
Original file line number Diff line number Diff line change
@@ -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 }}
Expand Down
6 changes: 3 additions & 3 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
5 changes: 4 additions & 1 deletion static/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7d19d8b

Please sign in to comment.