Add debug page info to the bottom left corner of the page
This commit is contained in:
parent
83f9550849
commit
6c915ab925
3 changed files with 44 additions and 0 deletions
|
@ -8,6 +8,7 @@
|
|||
<main>
|
||||
{{ block "main" . }}{{ end }}
|
||||
</main>
|
||||
{{ partial "development/page_info.html" . }}
|
||||
{{ block "footer" . }}{{ end }}
|
||||
{{ end }}
|
||||
</body>
|
||||
|
|
11
layouts/partials/development/page_info.html
Normal file
11
layouts/partials/development/page_info.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
{{ if not hugo.IsProduction }}
|
||||
<div class="platter" id="debug-page-info">
|
||||
<details open>
|
||||
<summary>Debug Page Info</summary>
|
||||
<table>
|
||||
<tr><td>.Section</td><td>{{ .Section }}</td></tr>
|
||||
<tr><td>.Type</td><td>{{ .Type }}</td></tr>
|
||||
</table>
|
||||
</details>
|
||||
</div>
|
||||
{{ end }}
|
Loading…
Add table
Add a link
Reference in a new issue