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:
-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 }}