feat: Add debug mode
This commit is contained in:
parent
2108cde59e
commit
371b954e21
|
@ -3,6 +3,7 @@
|
|||
{{ partial "head.html" . }}
|
||||
<body>
|
||||
{{ partial "header.html" . }}
|
||||
{{ partial "debug.html" . }}
|
||||
<main role="main" id="content">
|
||||
{{ block "main" . }}{{ end }}
|
||||
</main>
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
{{ if .Site.Params.debug }}
|
||||
<ul>
|
||||
<li>.IsHome : {{ .IsHome }}</li>
|
||||
<li>.CurrentSection : {{ .CurrentSection }}</li>
|
||||
<li>.IsPage : {{ .IsPage }}</li>
|
||||
<li>.IsNode : {{ .IsNode }}</li>
|
||||
<li>.Kind : {{ .Kind }}</li>
|
||||
<li>.RelPermalink : {{ .RelPermalink }}</li>
|
||||
<li>.Summary : {{ .Summary }}</li>
|
||||
<li>.TableOfContents : {{ .TableOfContents }}</li>
|
||||
<li>.Resources : {{ .Resources }}</li>
|
||||
</ul>
|
||||
{{ end }}
|
Loading…
Reference in New Issue