diff options
author | Alan Pearce | 2024-05-05 18:54:32 +0200 |
---|---|---|
committer | Alan Pearce | 2024-05-05 18:54:32 +0200 |
commit | 9317874ab59f7bbbb517ea6b38799752bb44b14c (patch) | |
tree | 20ea5a7abdb6b0cafbb568733d377a24f9dd3d51 /frontend/templates/blocks | |
parent | 9a7b37e5190d0a712a2188c5d9ca4c5f6e93bf66 (diff) | |
download | searchix-9317874ab59f7bbbb517ea6b38799752bb44b14c.tar.lz searchix-9317874ab59f7bbbb517ea6b38799752bb44b14c.tar.zst searchix-9317874ab59f7bbbb517ea6b38799752bb44b14c.zip |
style: improve layout and formatting of code samples
Diffstat (limited to 'frontend/templates/blocks')
-rw-r--r-- | frontend/templates/blocks/options.gotmpl | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/frontend/templates/blocks/options.gotmpl b/frontend/templates/blocks/options.gotmpl index 1172e52..7c98450 100644 --- a/frontend/templates/blocks/options.gotmpl +++ b/frontend/templates/blocks/options.gotmpl @@ -10,16 +10,20 @@ <dl> {{- with .Type }} <dt>Type</dt> - <dd>{{ . }}</dd> + <dd><code>{{ . }}</code></dd> {{- end }} {{- with .Default }} <dt>Default</dt> - <dd><code>{{ .Text }}</code></dd> + <dd> + <pre><code>{{ .Text }}</code></pre> + </dd> {{- end }} {{- with .Example }} {{- if .Text }} <dt>Example</dt> - <dd><code>{{ .Text }}</code></dd> + <dd> + <pre><code>{{ .Text }}</code></pre> + </dd> {{- end }} {{- end }} {{- with .RelatedPackages.HTML }} |