fix it
This commit is contained in:
7
homepage/layouts/_default/_markup/render-heading.html
Normal file
7
homepage/layouts/_default/_markup/render-heading.html
Normal file
@@ -0,0 +1,7 @@
|
||||
{{ $class := "" }}
|
||||
{{ if findRE "^(?:\\d+\\.)+\\s+" .Text 1 }}
|
||||
{{ $class = "manual-number" }}
|
||||
{{ end }}
|
||||
<h{{ .Level }} id="{{ .Anchor | safeURL }}"{{ with $class }} class="{{ . }}"{{ end }}>
|
||||
{{ .Text | safeHTML }}
|
||||
</h{{ .Level }}>
|
||||
20
homepage/layouts/_default/_markup/render-image.html
Normal file
20
homepage/layouts/_default/_markup/render-image.html
Normal file
@@ -0,0 +1,20 @@
|
||||
{{- $alt := .Text -}} {{- $src := .Destination -}} {{- $title := .Title -}}
|
||||
|
||||
<figure>
|
||||
<img
|
||||
src="{{ $src }}"
|
||||
alt="{{ $alt }}"
|
||||
loading="lazy"
|
||||
{{
|
||||
with
|
||||
$title
|
||||
}}
|
||||
title="{{ . }}"
|
||||
{{
|
||||
end
|
||||
}}
|
||||
/>
|
||||
{{- with $alt }}
|
||||
<figcaption>{{ . }}</figcaption>
|
||||
{{ end -}}
|
||||
</figure>
|
||||
Reference in New Issue
Block a user