Review and update whitespaces in shortcodes to improve shortcode nesting
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
{{- $style := default "default" (.Get "style") -}}
|
||||
<span class="book-badge {{ $style }}">
|
||||
{{- with .Get "title" }}<span class="book-badge-title">{{ . | plainify }}</span>{{ end -}}
|
||||
{{- with .Get "value" }}<span class="book-badge-value">{{ . | plainify }}</span>{{ end -}}
|
||||
</span>
|
||||
{{- with .Get "title" -}}<span class="book-badge-title">{{ . | plainify }}</span>{{- end -}}
|
||||
{{- with .Get "value" -}}<span class="book-badge-value">{{ . | plainify }}</span>{{- end -}}
|
||||
</span>
|
||||
{{- /* remove whitespaces */ -}}
|
||||
|
||||
Reference in New Issue
Block a user