mirror of
https://github.com/davegallant/davegallant.github.io.git
synced 2025-08-08 01:22:29 +00:00
Switch themes to minimo
This commit is contained in:
27
themes/minimo/layouts/partials/entry/cover.html
Normal file
27
themes/minimo/layouts/partials/entry/cover.html
Normal file
@@ -0,0 +1,27 @@
|
||||
{{- with .Params.cover -}}
|
||||
|
||||
{{- $type := ( printf "%T" . ) -}}
|
||||
{{- $isMap := ( not ( eq $type "string" ) ) -}}
|
||||
|
||||
<div class='entry-cover'>
|
||||
<figure class='container cover-{{- if $isMap -}}
|
||||
{{- with .style -}} {{ . }} {{- else -}} normal {{- end -}}
|
||||
{{- else -}} normal {{- end -}}
|
||||
'>
|
||||
<img src='{{ if $isMap }}{{ .image }}{{ else }}{{ . }}{{ end }}'
|
||||
{{- if $isMap }}
|
||||
{{- with ( .alternate | default .caption ) }} alt='{{ . | markdownify }}'{{ end -}}
|
||||
{{ end -}} />
|
||||
{{ if $isMap }}
|
||||
{{ with .caption }}
|
||||
<figcaption class='container'>
|
||||
<span>
|
||||
{{- . | markdownify -}}
|
||||
</span>
|
||||
</figcaption>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</figure>
|
||||
</div>
|
||||
|
||||
{{- end -}}
|
Reference in New Issue
Block a user