{{- /* Description list for a dynamic number of term-details pairs @context {string} class: CSS class name @context {string} entries: semicolon-separated pairs of "title=description" @example: {{< descrlist class="dl-borders-centered" entries="Author=William Shakespeare;Title=Macbeth;Year of Publication=1606" >}} */ -}} {{- $pairs := split (.Get "entries") ";" -}} {{- range $pairs -}} {{- $currentPairSplit := split . "=" -}}
{{ index $currentPairSplit 0 }}
{{ index $currentPairSplit 1 }}
{{- end -}}