{{ if and (or ($.Param "featured_image") ($.Param "summary_image")) (eq ($.Param "sidebarPosition") "right") }}
<divclass="summary-classic__image-container summary-classic__image-wrapper{{ if ($.Param "summary_image")}}2{{end}}"{{ifeq($.Param"sidebarPosition")"left"}}data-position="left"{{else}}data-position="right"{{end}}data-hwm="{{ with $.Param "summary_image"}}{{.hwm}}{{end}}">
{{ else if and (or ($.Param "image") ($.Param "summary_image")) (eq ($.Param "sidebarPosition") "right") }}
<divclass="summary-classic__image-container summary-classic__image-wrapper{{ if ($.Param "summary_image")}}2{{end}}"{{ifeq($.Param"sidebarPosition")"left"}}data-position="left"{{else}}data-position="right"{{end}}data-hwm="{{ with $.Param "summary_image"}}{{.hwm}}{{end}}">
<timetitle="{{ i18n "tooltip-written"}}"dir="{{ if ne ($.Param "languagedir")"rtl"}}ltr{{else}}rtl{{end}}">📅 {{ .Date.Format (i18n "summary-dateformat") }} </time>
{{ if ne (.Date.Format (i18n "summary-dateformat")) (.Lastmod.Format (i18n "summary-dateformat")) }}
<timetitle="{{ i18n "tooltip-modified"}}"dir="{{ if ne ($.Param "languagedir")"rtl"}}ltr{{else}}rtl{{end}}">· 📝 {{ .Lastmod.Format (i18n "summary-dateformat") }} </time>
{{ end }}
<spantitle="{{ i18n "tooltip-reading-time"}}"dir="{{ if ne ($.Param "languagedir")"rtl"}}ltr{{else}}rtl{{end}}">· ☕ {{ .ReadingTime }} {{ i18n "reading-time" }} </span>
{{ with $.Param "author" }}·<spantitle="{{ i18n "single-writtenBy"}}"dir="{{ if ne ($.Param "languagedir")"rtl"}}ltr{{else}}rtl{{end}}">{{if $.Param "authorEmoji" }}{{ $.Param "authorEmoji" }}{{ else }}✍️{{ end }} {{ . }}</span>{{ end }}
{{ if and (or ($.Param "featured_image") ($.Param "summary_image")) (eq ($.Param "sidebarPosition") "left") }}
<divclass="summary-classic__image-container summary-classic__image-wrapper{{ if ($.Param "summary_image")}}2{{end}}"{{ifeq($.Param"sidebarPosition")"left"}}data-position="left"{{else}}data-position="right"{{end}}data-hwm="{{ with $.Param "summary_image"}}{{.hwm}}{{end}}">
{{ else if and (or ($.Param "image") ($.Param "summary_image")) (eq ($.Param "sidebarPosition") "left") }}
<divclass="summary-classic__image-container summary-classic__image-wrapper{{ if ($.Param "summary_image")}}2{{end}}"{{ifeq($.Param"sidebarPosition")"left"}}data-position="left"{{else}}data-position="right"{{end}}data-hwm="{{ with $.Param "summary_image"}}{{.hwm}}{{end}}">