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

github.com/pravin/hugo-theme-prav.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeon Rosenshein <leonrosn@amazon.com>2022-05-29 03:20:29 +0300
committerLeon Rosenshein <leonrosn@amazon.com>2022-05-29 03:20:29 +0300
commit6a0ee3dedf974f3dc47fd14f968f3c389159de20 (patch)
treeb48c14400c538c6ad1a3b0e6e215160eac8d75c8
parent1dbfbbce08893a8e597bd87ae4ca698905637fdf (diff)
Add ability to have custom menu
-rw-r--r--layouts/partials/menu.html16
1 files changed, 11 insertions, 5 deletions
diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html
index 60eeb04..2648ab4 100644
--- a/layouts/partials/menu.html
+++ b/layouts/partials/menu.html
@@ -1,10 +1,10 @@
<div id="navbar" class="pure-menu pure-menu-open pure-menu-horizontal pure-menu-scrollable">
<a href="/" class="pure-menu-heading">
- {{ if .Site.Title }}
- {{ .Site.Title }}
+ {{ if .Site.Title }}
+ {{ .Site.Title }}
{{ else }}
- {{ .Site.Params.Title }}
- {{ end }}
+ {{ .Site.Params.Title }}
+ {{ end }}
</a>
<ul class="pure-menu-list">
<li class="pure-menu-item">
@@ -27,6 +27,12 @@
</li>
</ul>
<ul class="pure-menu-list pull-right">
+
+ {{ "<!-- Any custom header goes here-->" | safeHTML }}
+ <li class="pure-menu-item">
+ {{ partial "custom_menu.html" . }}
+ </li>
+
{{ if .Site.Social.github }}
<li class="pure-menu-item">
<a href="{{ .Site.Social.github }}" title="Github" class="pure-menu-link">
@@ -78,4 +84,4 @@
<div class="pure-u-1">
<div class="pad">
</div>
-</div>
+</div> \ No newline at end of file