mirror of
https://github.com/maikka39/Personal-Website.git
synced 2026-10-02 14:46:25 +00:00
Fix space in alt and style tags
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{{- $img := resources.Get .path }}
|
||||
{{- $img = $img.Resize (printf "%dx%d webp" $img.Width $img.Height) }}
|
||||
<img src="{{ $img.Permalink }}" alt="{{ .alt | default " " }}" width="{{ .width | default $img.Width }}"
|
||||
<img src="{{ $img.Permalink }}" alt="{{ .alt | default "" }}" width="{{ .width | default $img.Width }}"
|
||||
height="{{ .height | default $img.Height }}" {{- if .class}}class="{{ .class }}" {{end}}
|
||||
{{- if .style}}style="{{ .style | safeCSS | default " " }}" {{end}} />
|
||||
{{- if .style}}style="{{ .style | safeCSS }}" {{end}} />
|
||||
@@ -53,7 +53,7 @@
|
||||
{{- $img := resources.Get .Params.cover }}
|
||||
{{- $img = $img.Resize (printf "%dx%d png" $img.Width $img.Height) }}
|
||||
<meta name="twitter:image" content="{{ $img.Permalink }}" />
|
||||
<meta name="twitter:image:alt" content="{{ .Params.title | plainify | default " " }}" />
|
||||
<meta name="twitter:image:alt" content="{{ .Params.title | plainify }}" />
|
||||
{{- end }}
|
||||
<meta name="twitter:title" content="{{ .Title }}" />
|
||||
<meta name="twitter:description"
|
||||
|
||||
Reference in New Issue
Block a user