{{- /* 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/" -}} {{- with .Params.primary_image_credit }} {{ . }} {{- end }} {{ .Title | htmlUnescape }} {{- with .Params.categories }} {{ . }} {{- end }} {{- /* Authors */}} {{- with .Params.author }} {{- range $author := . }} {{- with $.Site.GetPage "page" $author }} {{- $imgsm := replace .Params.primary_image "/upload/" "/upload/w_80,h_80,c_fill,g_face/" }} {{- $imglg := replace .Params.primary_image "/upload/" "/upload/w_160,h_160,c_fill,g_face/" }} {{ .Title }} {{- end }} {{- end }} {{- end }} {{ .Date.Format "Jan 2, 2006" }} {{- /* 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 {% for image in item.gallery %} {# You can get the raw image url by accessing image.url #} {% endfor %} {% endif %} */ -}} {{- /* Social Shares */}} Facebook Twitter {{- /* Previous and Next Articles */}} {{- with .PrevInSection }} {{.Title | htmlUnescape}} {{- end -}} {{- with .NextInSection -}} {{.Title | htmlUnescape }} {{- end }} {{- /* 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.short_bio|markdown } More info {% endfor %} */ -}} {{- /* Related Content */}} {{- with .Params.related_articles }} Related Content {{- range $article := . -}} {{- with $.Site.GetPage "page" $article -}} {{- $imgsm := replace .Params.primary_image "/upload/" "/upload/w_370,h_245,c_fill,g_faces/" }} {{- $imglg := replace .Params.primary_image "/upload/" "/upload/w_740,h_490,c_fill,g_faces/" }} {{ .Title | htmlUnescape }} {{- with .Params.categories }} {{ . }} {{- end }} {{- end -}} {{- end -}} {{- end -}} {{- /* People and Companies - The Scene */}} {{- if (or (.Params.related_people) (.Params.related_companies)) }} Mentions {{- with .Params.related_people -}} {{- range $person := . -}} {{- with $.Site.GetPage "page" $person -}} {{- $imgsm := replace .Params.primary_image "/upload/" "/upload/w_100,h_100,c_fill,g_face/" }} {{- $imglg := replace .Params.primary_image "/upload/" "/upload/w_200,h_200,c_fill,g_face/" }} {{ .Title | htmlUnescape }} {{- end -}} {{- end -}} {{- end -}} {{- with .Params.related_companies -}} {{- range $company := . -}} {{- with $.Site.GetPage "page" $company -}} {{- $imgsm := replace .Params.primary_image "/upload/" "/upload/w_100,h_100,c_fill,g_face/" }} {{- $imglg := replace .Params.primary_image "/upload/" "/upload/w_200,h_200,c_fill,g_face/" }} {{ .Title | htmlUnescape }} {{- end -}} {{- end -}} {{- end -}} {{- end -}} {{- /* Comments from Disqus */}} Comments Please enable JavaScript to view the comments powered by Disqus.
Comments