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

github.com/yanlinlin82/simple-style.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinlin Yan <yanlinlin82@gmail.com>2019-12-25 17:33:05 +0300
committerLinlin Yan <yanlinlin82@gmail.com>2019-12-25 17:47:55 +0300
commitd0ec92dde1bf0cf7211ee466f13347a63b3b0744 (patch)
tree4088bb0f77f07d08aa8e19ebed9285282b294eea
parent71d62126454d9d25f029145e452566252323284e (diff)
Support navi-menu to parent site
-rw-r--r--layouts/_default/baseof.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 3205395..1ac6278 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -37,6 +37,13 @@ li.page-item{display:inline;padding-right:15px}
</head>
<body>
<header>
+ {{ with .Site.Menus.parent -}}
+ <nav>
+ {{ range . -}}
+ <a href="{{ .URL }}">{{ .Name }}</a>
+ {{ end -}}
+ </nav>
+ {{ end -}}
<div>
<h1><a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a></h1>
{{- if .Site.Params.subtitle }}<h2><a href="{{ .Site.BaseURL }}">{{ .Site.Params.subtitle }}</a></h2>{{- end }}