From 7d19d8b66a0720298c4a05df70a2db634b034b90 Mon Sep 17 00:00:00 2001 From: athul Date: Sun, 12 Apr 2020 20:31:09 +0530 Subject: [PATCH] NavBar Updates --- exampleSite/config.toml | 19 +++++++++++++++++++ layouts/_default/terms.html | 5 +++-- layouts/partials/footer.html | 3 +++ layouts/partials/head.html | 6 +++--- 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 @@ {{ $value.Name }} {{ end }} - - + +
{{ partial "footer.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 @@ {{ 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 @@ {{ .Site.Title }} \ 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;