{{ $articleType := .Params.type | default "life" }} {{ $typeConfig := .Site.Params.articleTypes }} {{ $typeData := index $typeConfig $articleType }} {{ $isDark := strings.Contains (os.Getenv "THEME") "dark" }} {{ $color := cond $isDark $typeData.color_dark $typeData.color_light }}
{{ if $typeData }} {{ i18n $articleType }} {{ end }}

{{ .Title }}

{{ if .PublishDate }}
{{ end }} {{ if and .LastMod (ne .LastMod.Format "2006-01-02" .PublishDate.Format "2006-01-02") }}
{{ end }} {{ if .Site.Params.readingTime }}
{{ .ReadingTime }} {{ i18n "min" }} {{ i18n "readingTime" }}
{{ end }}