diff options
author | Leon Rosenshein <leonrosenshein@users.noreply.github.com> | 2022-09-06 18:07:30 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-06 18:07:30 +0300 |
commit | c6c26d070b256aa03c6f2d538e539a4786a7adeb (patch) | |
tree | 83866589450d39ee22231af10fa7a3c024746e48 | |
parent | 1dbfbbce08893a8e597bd87ae4ca698905637fdf (diff) | |
parent | e5679f290414f3df6cf0df9c0700447e075daf84 (diff) |
Add more user level customization
-rw-r--r-- | layouts/partials/custom_menu.html | 0 | ||||
-rw-r--r-- | layouts/partials/header.html | 2 | ||||
-rw-r--r-- | layouts/partials/menu.html | 16 |
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 |