Compare commits
5 Commits
172fc25b0a
...
214825c991
Author | SHA1 | Date |
---|---|---|
Alexander Avery | 214825c991 | 9 months ago |
Alexander Avery | 06048b5f3b | 9 months ago |
Alexander Avery | 7b16ffb0cf | 9 months ago |
Alexander Avery | adc9b11012 | 9 months ago |
Alexander Avery | 4d9784b714 | 9 months ago |
11 changed files with 52 additions and 54 deletions
@ -1,5 +1,5 @@ |
|||
<footer> |
|||
<hr/> |
|||
<hr> |
|||
<p class="center-text"><a class="small-text" href="/authors">Authors</a></p> |
|||
<p class="center-text small-text">{{ $.Site.Copyright | safeHTML }}</p> |
|||
</footer> |
|||
|
@ -1,10 +0,0 @@ |
|||
<img class="shadow featured" |
|||
{{ with .image }} |
|||
srcset=" |
|||
{{ (.Resize "320x q30").RelPermalink }} 500w, |
|||
{{ (.Resize "600x q40").RelPermalink }} 800w, |
|||
{{ (.Resize "1200x q65").RelPermalink }} 2x" |
|||
src="{{ (.Resize "320x q30").RelPermalink }}" |
|||
{{ end }} |
|||
alt="{{ .alt }}" |
|||
/> |
@ -0,0 +1,21 @@ |
|||
<img class="{{ .class }}" |
|||
{{ with .image }} |
|||
srcset=" |
|||
{{- with (.Resize "600x q40") -}} |
|||
{{ printf "%s %dw," .RelPermalink .Width }} |
|||
{{- end -}} |
|||
|
|||
{{- with (.Resize "1200x q65") -}} |
|||
{{ printf "%s %dw" .RelPermalink .Width }} |
|||
{{- end -}}" |
|||
|
|||
sizes=" |
|||
{{- with (.Resize "600x q40") -}} |
|||
{{- printf "(max-width: 700px) %dpx," .Width -}} |
|||
{{- end -}} |
|||
800px" |
|||
|
|||
src="{{ (.Resize "1200x q65").RelPermalink }}" |
|||
{{ end }} |
|||
alt="{{ .alt }}" |
|||
> |
@ -1,10 +0,0 @@ |
|||
<img class="{{ .class | default "fill-wh"}}" |
|||
{{ with .context.Resources.GetMatch .context.Params.featured.url }} |
|||
srcset=" |
|||
{{ (.Resize "320x q30").RelPermalink }} 500w, |
|||
{{ (.Resize "600x q40").RelPermalink }} 800w, |
|||
{{ (.Resize "1200x q65").RelPermalink }} 2x" |
|||
src="{{ (.Resize "320x q30").RelPermalink }}" |
|||
alt="{{ .Params.alt }}" |
|||
{{ end }} |
|||
/> |
@ -0,0 +1,3 @@ |
|||
{{ $image := .Page.Resources.GetMatch (.Get "src") }} |
|||
{{ partial "image.html" (dict "image" $image "alt" (.Get "alt") "class" "fill-wh") }} |
|||
|
@ -1,11 +0,0 @@ |
|||
<img class="{{ .Get "class" | default "fill-wh" }}" |
|||
{{ with .Get "src" | .Page.Resources.GetMatch }} |
|||
srcset=" |
|||
{{ (.Resize "320x q30").RelPermalink }} 500w, |
|||
{{ (.Resize "600x q40").RelPermalink }} 800w, |
|||
{{ (.Resize "1200x q65").RelPermalink }} 2x" |
|||
src="{{ (.Resize "320x q30").RelPermalink }}" |
|||
{{ end }} |
|||
alt="{{ .Get "alt" }}" |
|||
/> |
|||
|
Loading…
Reference in new issue