Merge pull request #2403 from ZhenShuo2021/fix/figure-link-area

🐛 Fix(figure): limit link hover area to image only
This commit is contained in:
Nuno C.
2025-09-15 23:03:33 +01:00
committed by GitHub
2 changed files with 3 additions and 3 deletions
@@ -5,7 +5,7 @@
<figure{{ with .Get "class" }} class="{{ . }}"{{ end }}>
{{- if .Get "link" -}}
<a href="{{ .Get "link" }}"{{ with .Get "target" }} target="{{ . }}"{{ end }}{{ with .Get "rel" }} rel="{{ . }}"{{ end }}>
<a href="{{ .Get "link" }}"{{ with .Get "target" }} target="{{ . }}"{{ end }}{{ with .Get "rel" }} rel="{{ . }}"{{ end }} class="inline-block">
{{- end -}}
{{- $u := urls.Parse (.Get "src") -}}