diff options
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/baseof.html | 13 | ||||
-rw-r--r-- | layouts/partials/body-header.html | 12 |
2 files changed, 16 insertions, 9 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index c806d53..befda08 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -4,7 +4,16 @@ <title>{{ block "title" . }}{{ end }}</title> {{ partial "html-head.html" . }} </head> - <body data-url="{{ .RelPermalink }}"> + <body data-url="{{ .RelPermalink }}" + + class=" + {{- with .Params.layout}}layout_{{.}} {{end -}} + {{if .Params.hide_header}}hideheader {{end -}} + {{if .Params.hide_nav}}hidenav {{end -}} + {{if .Params.hide_breadcrumb}}hidebreadcrumb {{end -}} + {{if .Params.hide_toc}}hidetoc {{end -}} + {{if .Params.hide_footer}}hidefooter {{end -}} + "> <!-- <style type="text/css"> #debug{ @@ -36,7 +45,7 @@ {{ if eq .Params.layout "raw" }} {{- .Content -}} {{ else }} - <header> + <header style=""> {{ partial "body-header.html" . }} </header> diff --git a/layouts/partials/body-header.html b/layouts/partials/body-header.html index 636b388..531f3f1 100644 --- a/layouts/partials/body-header.html +++ b/layouts/partials/body-header.html @@ -1,13 +1,13 @@ - <div class="logo"> +<div> <div class="burger {{.Params.layout }}"> - <a href="javascript:void(0);" style="font-size:15px;" onclick="$('article > aside').toggleClass('responsive')">☰</a> + <a href="javascript:void(0);" style="font-size:15px;" onclick="$('article > aside').toggleClass('responsive')">☰</a> </div> - + <div> {{- $defaultheader := printf "<a class='baselink' href='%s'>%s</a>" .Site.BaseURL .Site.Title -}} {{- partial "_mdinclude.html" (dict "name" "_layout/header/_index" "context" . "tip" $defaultheader ) -}} </div> - + {{- with .Site.Menus.shortcuts}} <nav class="shortcuts"> {{- range sort . "Weight"}} @@ -20,6 +20,4 @@ </nav> {{- end}} - </div> - - +</div>
\ No newline at end of file |