feat(shortcode): refactor and improve image shortcode (#187)
This commit is contained in:
@@ -7,8 +7,8 @@
|
||||
{{- end -}}
|
||||
{{- with $avatar -}}
|
||||
<div class="home-avatar">
|
||||
<a href="/posts">
|
||||
{{- partial "plugin/image.html" (dict "src_s" . "title" "avatar" "description" (T "home") "scratch" $scratch) -}}
|
||||
<a href="/posts" title="{{ T `home` }}">
|
||||
{{- partial "plugin/image.html" (dict "src" . "alt" (T "home")) -}}
|
||||
</a>
|
||||
</div>
|
||||
{{- end -}}
|
||||
|
||||
Reference in New Issue
Block a user