From 7d06db3a3e63f49fc527407bdaa7b90c7099bf9a Mon Sep 17 00:00:00 2001 From: syui Date: Mon, 6 Apr 2020 18:12:28 +0900 Subject: fix menu display --- config.toml | 5 +++++ content/post/test.md | 15 +++++++++++++++ layouts/index.html | 2 -- layouts/partials/header.html | 2 ++ layouts/partials/navigation.html | 2 -- static/css/screen.css | 1 - 6 files changed, 22 insertions(+), 5 deletions(-) create mode 100644 content/post/test.md diff --git a/config.toml b/config.toml index 2e1b47d..96d4e00 100644 --- a/config.toml +++ b/config.toml @@ -28,3 +28,8 @@ canonifyurls = true # set true if you are not proud of using Hugo (true will hide the footer note "Proudly published with HUGO.....") hideHUGOSupport = false mainSections = ["post"] + +[[menu.main]] +name = "About" +url = "/about/" +weight = 2 diff --git a/content/post/test.md b/content/post/test.md new file mode 100644 index 0000000..f5a7319 --- /dev/null +++ b/content/post/test.md @@ -0,0 +1,15 @@ ++++ +author = "syui" +comments = false +date = "2019-12-09" +draft = false +image = "" +menu = "" +share = false +slug = "ok" +title= "ok" ++++ + +```bash +echo "hello world !!" +``` diff --git a/layouts/index.html b/layouts/index.html index 220ad94..35771d0 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -12,7 +12,6 @@ {{ if .Site.Params.logo }} {{end}} -
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 15ad7eb..da993a7 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -64,6 +64,8 @@ {{end}} + +
{{ partial "navigation.html" . }} diff --git a/layouts/partials/navigation.html b/layouts/partials/navigation.html index 57df13d..372220f 100644 --- a/layouts/partials/navigation.html +++ b/layouts/partials/navigation.html @@ -1,4 +1,3 @@ - diff --git a/static/css/screen.css b/static/css/screen.css index 53b404c..1fc0b16 100644 --- a/static/css/screen.css +++ b/static/css/screen.css @@ -825,7 +825,6 @@ body.nav-opened .menu-button .word { /* Special styles when overlaid on an image*/ .main-nav.overlay { - position: absolute; top: 0; left: 0; right: 0; -- cgit v1.2.3