Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/vjeantet/hugo-theme-docport.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvjeantet <valere.jeantet@gmail.com>2020-08-25 23:22:40 +0300
committervjeantet <valere.jeantet@gmail.com>2020-08-25 23:22:40 +0300
commitbf40a4a396ada15135c52004b203705d4c7b89ea (patch)
treef813469ef2f11fc6f570bdf12e1b22e7bf388a70 /layouts
parent24d9aaf51269ad3427bb77cddfd949dba387cab7 (diff)
refactor layout
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/baseof.html13
-rw-r--r--layouts/partials/body-header.html12
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')">&#9776;</a>
+ <a href="javascript:void(0);" style="font-size:15px;" onclick="$('article > aside').toggleClass('responsive')">&#9776;</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