{{ $.Title }}
{{ $params.subtitle }}
{{- dict "Date" $updateDate | T "updatedOnDate" -}}: {{ $params.upd }}
{{- else -}}{{- define "title" }}{{ .Title }} | {{ .Site.Params.Title }}{{ end -}} {{- define "dnsPrefetch" -}} {{- $params := .Scratch.Get "params" -}} {{- with $params.Seo.dnsPrefetch -}} {{- range $index, $value := . -}} {{- end -}} {{- end -}} {{- with $.Site.Params.Seo.dnsPrefetch -}} {{- range $index, $value := . -}} {{- end -}} {{- end -}} {{- end -}} {{- define "twitter-card" -}} {{- $params := .Scratch.Get "params" -}} {{ $twitterImage := ""}} {{- with .Resources.GetMatch "featured-image" -}} {{- if lt 4095 .Width -}} {{- $twitterImage = (.Resize "4095x q100").Permalink -}} {{- else -}} {{- $twitterImage = .Permalink -}} {{- end -}} {{- end -}} {{- with $params.Images -}} {{- $twitterImage = index . 0 -}} {{- end -}} {{- with ($params.twitter | default .Site.Params.Social.Twitter ) -}} {{- end -}} {{- end -}} {{- define "no-content" -}} {{- $params := .Scratch.Get "params" -}} {{ $viewCounter := .Site.Params.ViewCounter }} {{- $toc := $params.toc -}} {{- if eq $toc true -}} {{- $toc = .Site.Params.page.toc | default dict -}} {{- else if eq $toc false -}} {{- $toc = dict "enable" false -}} {{- end -}} {{- $pageTheme := $params.Theme | default .Site.Params.Page.theme | default "classic" -}} {{ $params.UniqueId }}
{{ $params.subtitle }}
{{- dict "Date" $updateDate | T "updatedOnDate" -}}: {{ $params.upd }}
{{- else -}}
Комментарии
{{- $authorComment := $params.authorComment -}} {{- if $authorComment -}} {{- with $author -}}