mirror of https://github.com/jpanther/congo.git
Adjust whitespace for `srcset` links
parent
e99609b14a
commit
5fae5fea82
|
@ -24,10 +24,10 @@
|
||||||
src="{{ .RelPermalink }}"
|
src="{{ .RelPermalink }}"
|
||||||
{{ else }}
|
{{ else }}
|
||||||
srcset="
|
srcset="
|
||||||
{{ (.Resize "330x").RelPermalink }} 330w,
|
{{- (.Resize "330x").RelPermalink }} 330w,
|
||||||
{{ (.Resize "660x").RelPermalink }} 660w,
|
{{- (.Resize "660x").RelPermalink }} 660w,
|
||||||
{{ (.Resize "1024x").RelPermalink }} 1024w,
|
{{- (.Resize "1024x").RelPermalink }} 1024w,
|
||||||
{{ (.Resize "1320x").RelPermalink }} 2x"
|
{{- (.Resize "1320x").RelPermalink }} 2x"
|
||||||
src="{{ (.Resize "660x").RelPermalink }}"
|
src="{{ (.Resize "660x").RelPermalink }}"
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -23,10 +23,11 @@
|
||||||
{{ if lt .Width 660 }}
|
{{ if lt .Width 660 }}
|
||||||
src="{{ .RelPermalink }}"
|
src="{{ .RelPermalink }}"
|
||||||
{{ else }}
|
{{ else }}
|
||||||
srcset=" {{ (.Resize "330x").RelPermalink }} 330w,
|
srcset="
|
||||||
{{ (.Resize "660x").RelPermalink }} 660w, {{ (.Resize "1024x").RelPermalink }}
|
{{- (.Resize "330x").RelPermalink }} 330w,
|
||||||
1024w, {{ (.Resize "1320x").RelPermalink }} 2x"
|
{{- (.Resize "660x").RelPermalink }} 660w,
|
||||||
src="{{ (.Resize "660x").RelPermalink }}"
|
{{- (.Resize "1024x").RelPermalink }} 1024w,
|
||||||
|
{{- (.Resize "1320x").RelPermalink }} 2x"
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
alt="{{ $.Params.featureAlt | default $.Params.coverAlt | default "" }}"
|
alt="{{ $.Params.featureAlt | default $.Params.coverAlt | default "" }}"
|
||||||
|
|
|
@ -19,8 +19,8 @@
|
||||||
sm:max-w-[10rem]" src="{{ .RelPermalink }}"
|
sm:max-w-[10rem]" src="{{ .RelPermalink }}"
|
||||||
{{ else }}
|
{{ else }}
|
||||||
class="w-24 rounded-md sm:w-40" srcset="
|
class="w-24 rounded-md sm:w-40" srcset="
|
||||||
{{- (.Fill "160x120 smart").RelPermalink }}
|
{{- (.Fill "160x120 smart").RelPermalink }} 160w,
|
||||||
160w, {{- (.Fill "320x240 smart").RelPermalink }} 2x"
|
{{- (.Fill "320x240 smart").RelPermalink }} 2x"
|
||||||
src="{{ (.Fill "160x120 smart").RelPermalink }}"
|
src="{{ (.Fill "160x120 smart").RelPermalink }}"
|
||||||
{{ end }}
|
{{ end }}
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -28,10 +28,10 @@
|
||||||
src="{{ .RelPermalink }}"
|
src="{{ .RelPermalink }}"
|
||||||
{{ else }}
|
{{ else }}
|
||||||
srcset="
|
srcset="
|
||||||
{{ (.Resize "330x").RelPermalink }} 330w,
|
{{- (.Resize "330x").RelPermalink }} 330w,
|
||||||
{{ (.Resize "660x").RelPermalink }} 660w,
|
{{- (.Resize "660x").RelPermalink }} 660w,
|
||||||
{{ (.Resize "1024x").RelPermalink }} 1024w,
|
{{- (.Resize "1024x").RelPermalink }} 1024w,
|
||||||
{{ (.Resize "1320x").RelPermalink }} 2x"
|
{{- (.Resize "1320x").RelPermalink }} 2x"
|
||||||
src="{{ (.Resize "660x").RelPermalink }}"
|
src="{{ (.Resize "660x").RelPermalink }}"
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in New Issue