{{ define "main" }} {{ $featured := .Page.Params.featured }} {{ $notPlainPage := ne .Page.Params.plain true }}
{{ if $notPlainPage }}
{{ if .Page.Params.tags }} {{ range first 1 .Page.Params.tags }} {{.}} {{ end }} {{ end }} {{ .Page.Params.Date | time.Format ":date_long"}}

{{ .Title }}

{{ .Page.Params.description }}
{{ range .Page.Params.tags}} {{ $url := printf "%s%s" "tags/" . }} {{ . }} {{ end }}
{{ else }}

{{ .Title }}

{{ end }}
{{ $content := .Content | replaceRE "

" "

" }} {{ $content = $content | replaceRE "" "
" }} {{ $content = $content | replaceRE "
" "

" }} {{ $content = $content | replaceRE "
    " "
      " }} {{ $content = $content | replaceRE "
    " "
" }} {{ $content = $content | replaceRE "
    " "
      " }} {{ $content = $content | replaceRE "
    " "
" }} {{ $content | safeHTML}} {{- if and $notPlainPage site.Params.ShowCopyRight -}}

{{ i18n "copyright" }}: {{ i18n "licenses" }}

{{ i18n "author"}}: {{ .Page.Params.author }}

{{ i18n "postDate"}}: {{ .Page.Params.Date | time.Format ":date_long" }}

{{- end -}}
{{ end }}