diff options
-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 |