Files
libertytoolsio/themes/hugo-book.backup/layouts/_markup/render-codeblock.html

11 lines
395 B
HTML

{{- with (index .Attributes "filename") -}}
{{- $href := index $.Attributes "href" -}}
{{- if $href -}}
{{- $href = partial "docs/links/portable-link" (dict "Page" $.PageInner "Destination" $href) -}}
{{- end -}}
<div class="book-codeblock-filename">
<a {{ with $href }}href="{{ . }}"{{ end }}>{{ . }}</a>
</div>
{{- end -}}
{{- (transform.HighlightCodeBlock . .Options).Wrapped -}}