diff options
Diffstat (limited to 'layouts/_default')
| -rw-r--r-- | layouts/_default/list.html | 12 | ||||
| -rw-r--r-- | layouts/_default/single.html | 13 |
2 files changed, 4 insertions, 21 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index a92fe71..3596a93 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -31,15 +31,7 @@ {{- $class = "post-entry tag-entry" }} {{- end }} <article class="{{ $class }}"> - {{- if .Params.cover.image }} - <figure class="entry-cover"> - {{- if (ne .Params.cover.relative true) }} - <img src="{{ .Params.cover.image | absURL }}" alt="{{ .Params.cover.alt | plainify }}"> - {{- else}} - <img src="{{ (path.Join .RelPermalink .Params.cover.image ) | absURL }}" alt="{{ .Params.cover.alt | plainify }}"> - {{- end}} - </figure> - {{- end }} + {{- partial "cover.html" (dict "cxt" . "IsHome" true) }} <header class="entry-header"> <h2> {{ .Title }} @@ -75,4 +67,4 @@ </footer> {{- end }} {{end}}{{/* end profileMode */}} -{{- end }}{{- /* end main */ -}}
\ No newline at end of file +{{- end }}{{- /* end main */ -}} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index ec8038e..20c3bc9 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -26,16 +26,7 @@ </div> {{- end}} </header> - {{- if .Params.cover.image }} - <figure class="entry-cover"> - {{- if (ne .Params.cover.relative true) }} - <img src="{{ .Params.cover.image | absURL }}" alt="{{ .Params.cover.alt | plainify }}"> - {{- else}} - <img src="{{ (path.Join .RelPermalink .Params.cover.image ) | absURL }}" alt="{{ .Params.cover.alt | plainify }}"> - {{- end}} - <p>{{.Params.cover.caption | markdownify }}</p> - </figure> - {{- end }} + {{- partial "cover.html" (dict "cxt" . "IsHome" false) }} {{- if .Params.ShowToc }} <div class="toc"> <details {{if .Params.TocOpen }} open{{ end }}> @@ -68,4 +59,4 @@ {{- end }} </article> -{{- end }}{{/* end main */}}
\ No newline at end of file +{{- end }}{{/* end main */}} |
