mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-01-22 14:35:43 -06:00
Merge pull request #108 from chrisbanes/cb/article-link-resize
Resize images displayed in article-link.html
This commit is contained in:
commit
c2d01e5dbe
1 changed files with 4 additions and 4 deletions
|
@ -30,9 +30,9 @@
|
|||
{{- $featured := $images.GetMatch "*feature*" -}}
|
||||
{{- if not $featured }}{{ $featured = $images.GetMatch "{*cover*,*thumbnail*}" }}{{ end -}}
|
||||
{{- with $featured -}}
|
||||
|
||||
<div class="{{ $articleImageClasses }}" style="background-image:url({{ $featured.Permalink }});"></div>
|
||||
|
||||
{{ with .Resize "600x" }}
|
||||
<div class="{{ $articleImageClasses }}" style="background-image:url({{ .RelPermalink }});"></div>
|
||||
{{ end }}
|
||||
{{- else -}}
|
||||
{{- with $.Site.Params.images }}
|
||||
<meta property="og:image" content="{{ index . 0 | absURL }}" />{{ end -}}
|
||||
|
@ -76,4 +76,4 @@
|
|||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</a>
|
||||
</a>
|
||||
|
|
Loading…
Reference in a new issue