Update layout to use Hugo Image Processing.
Created shortcode rimg that uses the srcset attribute to display responsive images.
This commit is contained in:
parent
ba1d6014d9
commit
49cb1042ea
10 changed files with 218 additions and 20 deletions
|
@ -14,4 +14,9 @@
|
|||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ return $authorImage }}
|
||||
{{ $authorImage:= resources.Get $authorImage}}
|
||||
{{ if $authorImage }}
|
||||
{{ $authorImage := $authorImage.Fit "120x120" }}
|
||||
{{ return $authorImage.RelPermalink }}
|
||||
{{ end }}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue