Tweak the layout of the debug page info thingie
This commit is contained in:
parent
82db8ebfd1
commit
52a79500c0
1 changed files with 12 additions and 1 deletions
|
@ -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 }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue