feat: Add debug mode

This commit is contained in:
Simon 2020-09-09 12:15:15 +02:00
parent 2108cde59e
commit 371b954e21
2 changed files with 14 additions and 0 deletions

View File

@ -3,6 +3,7 @@
{{ partial "head.html" . }}
<body>
{{ partial "header.html" . }}
{{ partial "debug.html" . }}
<main role="main" id="content">
{{ block "main" . }}{{ end }}
</main>

View File

@ -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 }}