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 <leonrosenshein@users.noreply.github.com>2022-09-06 18:07:30 +0300
committerGitHub <noreply@github.com>2022-09-06 18:07:30 +0300
commitc6c26d070b256aa03c6f2d538e539a4786a7adeb (patch)
tree83866589450d39ee22231af10fa7a3c024746e48
parent1dbfbbce08893a8e597bd87ae4ca698905637fdf (diff)
parente5679f290414f3df6cf0df9c0700447e075daf84 (diff)
Merge pull request #9 from leonrosenshein/masterHEADmaster
Add more user level customization
-rw-r--r--layouts/partials/custom_menu.html0
-rw-r--r--layouts/partials/header.html2
-rw-r--r--layouts/partials/menu.html16
3 files changed, 13 insertions, 5 deletions
diff --git a/layouts/partials/custom_menu.html b/layouts/partials/custom_menu.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/layouts/partials/custom_menu.html
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 3fb6ff4..a8f8180 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -29,7 +29,9 @@
rel="stylesheet">
<link rel="icon" href="/img/favicon.ico" type="image/x-icon">
+ {{ if .Site.Params.IncludeAtom -}}
<link rel="alternate" type="application/atom+xml" title="Atom Feed" href="/atom.xml" />
+ {{ end -}}
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{{ hugo.Generator }}
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