diff options
author | syui <syui@syui.cf> | 2020-04-06 12:12:28 +0300 |
---|---|---|
committer | syui <syui@syui.cf> | 2020-04-06 12:12:28 +0300 |
commit | 7d06db3a3e63f49fc527407bdaa7b90c7099bf9a (patch) | |
tree | 563f73e5928aca34063cab8220c034b243ca4058 | |
parent | ab3d79f48314cc0ea2524e751a356a51c0d69615 (diff) |
fix menu displaymenu
-rw-r--r-- | config.toml | 5 | ||||
-rw-r--r-- | content/post/test.md | 15 | ||||
-rw-r--r-- | layouts/index.html | 2 | ||||
-rw-r--r-- | layouts/partials/header.html | 2 | ||||
-rw-r--r-- | layouts/partials/navigation.html | 2 | ||||
-rw-r--r-- | static/css/screen.css | 1 |
6 files changed, 22 insertions, 5 deletions
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 }} <a class="blog-logo" href="{{ .Permalink }}"><img src="{{ .Site.BaseURL }}{{.Site.Params.logo}}" alt="Blog Logo" /></a> {{end}} - <!-- {{ if .Site.Menus.main }} <a class="menu-button" href="#"><span class="burger">☰</span><span class="word">Menu</span></a> {{else}} @@ -22,7 +21,6 @@ <a class="menu-button icon-feed" href="{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}"> Subscribe</a> {{end}} {{end}} - --> </nav> <div class="vertical"> <div class="main-header-content inner"> 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 @@ </script> {{end}} </head> + + <body class="nav-closed"> <div id="particles-js"></div> {{ 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 @@ -<!-- <div class="nav"> <h3 class="nav-title">Menu</h3> <a href="#" class="nav-close"> @@ -21,4 +20,3 @@ {{end}} </div> <span class="nav-cover"></span> ---> 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; |