blob: ede8f29b8ffcb679e6ab5ebea8127f2b855cd062 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
|
{{- $redirectURL := "" }}
{{ with .Params.redirect}}
{{ if or (hasPrefix . "http:") (hasPrefix . "https:") }}
{{ $redirectURL = . }}
{{ else }}
{{ $redirectURL = ref $ .}}
{{ end }}
{{ end }}
<!DOCTYPE html>
<html>
<head>
<title>{{ block "title" . }}{{ end }}</title>
{{ partial "html-head.html" . }}
{{if ne $redirectURL "" }}
<meta http-equiv="refresh" content="0;{{ $redirectURL }}">
{{end}}
</head>
<body data-url="{{ .RelPermalink }}"
class="
{{- with .Params.render}}render_{{.}} {{end -}}
{{if (in .Params.hide "header")}}hideheader {{end -}}
{{if (in .Params.hide "nav")}}hidenav {{end -}}
{{if (in .Params.hide "breadcrumb")}}hidebreadcrumb {{end -}}
{{if (in .Params.hide "toc")}}hidetoc {{end -}}
{{if (in .Params.hide "footer")}}hidefooter {{end -}}
{{if (in .Params.hide "nextpage")}}hidenextpage {{end -}}
">
<style type="text/css">
#debug{
display: -webkit-box;
display: -ms-flexbox;
display: flex;
line-height: 3.5rem;
margin-bottom: .35rem;
padding: 0 2rem;
position: fixed;
left: 0; right: 0; top: 0;
top:0px;
min-height: 150px;
background-color: white;
border: 3px solid red;
z-index: 10000 ;
word-wrap: all;
overflow: auto;
}
</style>
<!--
<pre id="debug">
{{ printf "%#v" .Params.hide }}
{{ printf "%#v" (in .Params.hide "breadcrumb") }}
</pre>
-->
{{ if ne $redirectURL ""}}
<script type="text/javascript">
window.location = '{{ $redirectURL }}'
</script>
<a href="{{ $redirectURL }}">go to {{ $redirectURL }}</a>
{{ else if eq .Params.render "raw" }}
{{- .Content -}}
{{ else }}
{{if not (in .Params.hide "header")}}
<header style="">
{{ partial "body-header.html" . }}
</header>
{{end}}
<article>
{{if not (in .Params.hide "nav")}}
<aside class="{{.Params.layout }}">
{{ partial "body-sidebar.html" . }}
</aside>
{{end}}
<section class="page {{.Params.layout }}">
{{ block "main" . }}
{{ end }}
</section>
<!-- NAVIGATION DROITE TOC -->
{{if not (in .Params.hide "toc")}}
<section class="right-menu {{.Params.layout }}">
{{ block "sidepage" . }}
{{ end }}
</section>
{{end -}}
<!-- FIN NAVIGATION DROITE TOC -->
</article>
{{if not (in .Params.hide "footer")}}
<footer>
{{ partial "body-footer.html" . }}
</footer>
{{end}}
{{end}}
</body>
</html>
|