{{- $params := .Page.Params | merge .Site.Params.Page | merge (dict "author" .Site.Author.name) -}} {{- $image := $params.featuredImagePreview | default $params.featuredImage -}} {{- with .Page.Resources.GetMatch (printf "%s" ($image)) -}} {{- $image = .RelPermalink -}} {{- end -}} {{- with .Page.Resources.GetMatch "featured-image" -}} {{- $image = .RelPermalink -}} {{- end -}} {{- with .Page.Resources.GetMatch "featured-image-preview" -}} {{- $image = .RelPermalink -}} {{- end -}} {{- .Page.Title -}} {{- .Page.Permalink -}} {{- .Page.Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" -}} {{- if .Page.Params.authors -}} {{- $lang := ( .Page.Language.Lang | default $.Lang ) -}} {{- range $i, $name := .Page.Params.authors -}} {{- if $.Site.Data.authors -}} {{- with partial "function/author.html" (dict "name" $name "author" (index $.Site.Data.authors $name) "lang" $lang) -}} {{- .name -}} {{- if .absLink -}} {{ .absLink | absURL }} {{- else -}} {{ .link | absURL }} {{- end -}} {{- if .email -}} {{ .email }} {{- end -}} {{- end -}} {{- else -}} {{- $name -}} {{- end -}} {{- end -}} {{- else -}} {{- $params.author | default (T "author") -}} {{- end -}} {{- .Page.Permalink -}} {{- " {{- end -}} {{- $content := .Page.Description -}} {{- if $params.rssFullText -}} {{- $content = dict "Content" .Page.Content "Ruby" $params.ruby "Fraction" $params.fraction "Fontawesome" $params.fontawesome | partial "function/content.html" -}} {{- else -}} {{- with .Page.Summary -}} {{- $content = dict "Content" . "Ruby" $params.ruby "Fraction" $params.fraction "Fontawesome" $params.fontawesome | partial "function/content.html" -}} {{- end -}} {{- end -}} {{/* {{- $content | replaceRE `]*>.*` "" | replaceRE `]*( /)?>` "" | safeHTML -}} */}} {{- $content | safeHTML -}} {{- "]]>" | safeHTML -}}