Tweak the layout of the debug page info thingie

This commit is contained in:
Eryn Wells 2023-05-19 17:06:57 -07:00
parent 82db8ebfd1
commit 52a79500c0

View file

@ -1,7 +1,8 @@
{{ if not hugo.IsProduction }}
<div class="platter" id="debug-page-info">
<details>
<summary>Debug Page Info</summary>
<summary>Debug Info</summary>
<h4>Page Details</h4>
<table>
<tbody>
<tr><td>.FirstSection</td><td>{{ .FirstSection }}</td></tr>
@ -16,6 +17,16 @@
</tbody>
{{ end }}
</table>
{{ if gt (len site.Params.flags) 0 -}}
<h4>Flags</h4>
<table>
<tbody>
{{ range $flag, $value := site.Params.flags }}
<tr><td>{{ $flag }}</td><td>{{ $value }}</td></tr>
{{ end }}
</tbody>
</table>
{{- end }}
</details>
</div>
{{ end }}