{{/* {# ------------------------------------------------------- #} {# INDIVIDUAL VIEW FOR EACH ARTICLE #} {# ------------------------------------------------------- #} */}} {{/* meta data */}} {{- define "og_title" -}}{{ .Title | htmlUnescape }}{{- end -}} {{- define "og_type" -}}article{{- end -}} {{- define "og_url" -}}{{ .Permalink }}{{- end -}} {{- define "og_image" -}}{{ replace .Params.primary_image "/upload/" "/upload/w_740,h_740,c_fill,g_faces/" }}{{- end -}} {{- define "og_description" -}}{{ .Params.short_description | htmlUnescape }}{{- end -}} {{- define "main" -}} {{- /* Schema */ -}}
{{- /* Primary Hero */}}
{{ $imgsm := replace .Params.primary_image "/upload/" "/upload/w_740,h_740,c_fill,g_faces/" -}} {{- $imglg := replace .Params.primary_image "/upload/" "/upload/w_1480,h_1480,c_fill,g_faces/" -}} {{ .Title | htmlUnescape }} {{- with .Params.primary_image_credit }} {{ . }} {{- end }}

{{ .Title | htmlUnescape }}

{{- with .Params.categories }} {{- end }}
{{- /* Authors */}}
{{- with .Params.author }} {{- range $author := . }} {{- with $.Site.GetPage "page" $author }} {{ .Title }} {{- end }} {{- end }} {{- end }}
{{- /* Disclaimer */}} {{ if .Params.disclaimer -}}
{{ .Params.disclaimer | markdownify }}
{{- end -}} {{- /* Preamble */}} {{- if .Params.preamble }}
{{ .Params.preamble | markdownify }}
{{- end -}} {{- /* Post Content */}} {{- if .Content }}
{{ .Content }}
{{- end -}} {{- /* Postamble */}} {{- if .Params.postamble }}
{{ .Params.postamble | markdownify }}
{{- end -}} {{- /* video content */}} {{- if .Params.youtube_url }}
{{- end -}} {{- /* TODO: Gallery {% if item.gallery|size !== 0 %}

Gallery

{% endif %} */ -}} {{- /* Social Shares */}}
{{- /* Previous and Next Articles */}} {{- /* Adspot 1
{{- partial "ad-spot1.html" . -}}
*/ -}} {{- /* TODO: Author details

Written by

{% for author in item.authors %}
{% set srcset = author.photo|imageCrop(100, 100) + ", " + author.photo|imageCrop(200, 200) + " 2x" %} { author.name }

{ author.name }

{ author.short_bio|markdown }
{% endfor %}
*/ -}} {{- /* Related Content */}} {{- with .Params.related_articles }}

Related Content

{{- end -}} {{- /* People and Companies - The Scene */}} {{- if (or (.Params.related_people) (.Params.related_companies)) }}

Mentions

{{- end -}} {{- /* Comments from Disqus */}}

Comments

{{- end -}}