2023-01-01 18:21:01 +03:00
{{ define "head_meta" }}
< meta property = "og:type" content = "article" / >
< meta property = "og:title" content = "{{ .Title }}" / >
2023-01-03 16:30:51 +03:00
< meta name = "description" content = "{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}" / >
2023-01-01 18:21:01 +03:00
< meta property = "og:description" content = "{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}" / >
< meta property = "og:url" content = "{{ .Permalink }}" / >
{{ with .PublishDate }}< meta property = "article:published_time" { { . Format " 2006-01-02T15:04:05-07:00 " | printf " content = %q" | safeHTMLAttr } } / > {{ end }}
{{ with .Lastmod }}< meta property = "article:modified_time" { { . Format " 2006-01-02T15:04:05-07:00 " | printf " content = %q" | safeHTMLAttr } } / > {{ end }}
{{ $thumb := $.Resources.Get $.Params.featured_image -}}
{{ with $thumb }}< meta property = "og:image" content = "{{ (.Fit " 1024x1024 " ) . Permalink } } " / > {{end}}
{{end}}
{{ define "main" }}
2023-01-04 20:26:54 +03:00
< div class = "page-wrapper" >
< div class = "content-column" >
< section class = "single post" >
< h1 > {{ .Title }}< / h1 >
2023-01-01 18:21:01 +03:00
2023-01-04 20:26:54 +03:00
< p >
{{- .Content -}}
< / p >
< / section >
2023-01-01 22:58:40 +03:00
2023-01-04 20:26:54 +03:00
< section class = "comments" >
{{ template "_internal/disqus.html" . }}
< / section >
2023-01-01 22:58:40 +03:00
< / div >
2023-01-04 20:26:54 +03:00
{{ partial "sidebar.html" . }}
< / div >
2023-01-01 18:21:01 +03:00
{{ end }}