Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/lingxz/er.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLingyi Hu <lingyihuu@gmail.com>2018-05-30 15:27:40 +0300
committerLingyi Hu <lingyihuu@gmail.com>2018-05-30 15:27:40 +0300
commit5454e36d86a45f0c7b0c57992783dea2b2a132d2 (patch)
tree082cebf351820249c1499bbf68bbef2872d1f903
parent0c4777e955d4fd6154f9584d0c92af60599a0eb4 (diff)
restore disappearing site title
-rw-r--r--layouts/partials/nav.html9
1 files changed, 5 insertions, 4 deletions
diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html
index 2669bc5..c845d3d 100644
--- a/layouts/partials/nav.html
+++ b/layouts/partials/nav.html
@@ -1,12 +1,13 @@
-{{ with .Site.Menus.main }}
-<nav class="{{ if lt (len .Site.Menus.main) 3 }} flex {{ else }} flex-ns{{ end }} justify-between border-box pa3 pl3-l pr2-l mt1 mt0-ns" id="navbar">
+
+<nav class="{{ with .Site.Menus.main }}{{ if lt (len .Site.Menus.main) 3 }} flex {{ else }} flex-ns{{ end }}{{ end }} justify-between border-box pa3 pl3-l pr2-l mt1 mt0-ns" id="navbar">
<div class="flex">
<a class="f4 fw6 ttu no-underline dim bg-main-color pv1 ph2 br2" id="site-title" href='{{ "" | relURL }}' title="Home">{{ .Site.Title }}</a>
</div>
+ {{ with .Site.Menus.main }}
<div class="{{ if lt (len .Site.Menus.main) 3 }} flex-grow {{ else }} flex-ns mt2 mt0-ns{{ end }} pv1">
{{ range .Site.Menus.main }}
<a class="link dim dark-gray f6 dib mr2 mr3-l ttu tracked" href='{{.URL}}' title="{{ .Name }}">{{ .Name }}</a>
{{ end }}
</div>
-</nav>
-{{ end }} \ No newline at end of file
+ {{ end }}
+</nav> \ No newline at end of file