diff options
author | vjeantet <valere.jeantet@gmail.com> | 2020-09-01 23:55:55 +0300 |
---|---|---|
committer | vjeantet <valere.jeantet@gmail.com> | 2020-09-01 23:55:55 +0300 |
commit | 8446cabd7795977f00bb97fd34e9eec310d5c8ea (patch) | |
tree | d38c69225901147be82304a172f06cce148afb86 /layouts/_default | |
parent | d598847437462e482aeb77ae8af4e93ee15dc9cb (diff) |
refactor hide_nav, header, breadcrumb...
Diffstat (limited to 'layouts/_default')
-rw-r--r-- | layouts/_default/baseof.html | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index d5a1abb..61be3f4 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -19,12 +19,13 @@ <body data-url="{{ .RelPermalink }}" class=" - {{- with .Params.layout}}layout_{{.}} {{end -}} + {{- with .Params.render}}render_{{.}} {{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 -}} + {{if .Params.hide_nextpage}}hidenextpage {{end -}} "> <!-- <style type="text/css"> @@ -59,18 +60,22 @@ window.location = '{{ $redirectURL }}' </script> <a href="{{ $redirectURL }}">go to {{ $redirectURL }}</a> -{{ else if eq .Params.layout "raw" }} +{{ else if eq .Params.render "raw" }} {{- .Content -}} {{ else }} + + {{if not .Params.hide_header}} <header style=""> {{ partial "body-header.html" . }} </header> + {{end}} <article> - + {{if not .Params.hide_nav}} <aside class="{{.Params.layout }}"> {{ partial "body-sidebar.html" . }} </aside> + {{end}} <section class="page {{.Params.layout }}"> {{ block "main" . }} @@ -78,17 +83,21 @@ </section> <!-- NAVIGATION DROITE TOC --> + {{if not .Params.hide_toc}} <section class="right-menu {{.Params.layout }}"> {{ block "sidepage" . }} {{ end }} </section> + {{end -}} <!-- FIN NAVIGATION DROITE TOC --> - </article> - + + {{if not .Params.hide_footer}} <footer> {{ partial "body-footer.html" . }} </footer> + {{end}} + {{end}} </body> |