Fix posts to allow content to be displayed in safari reader view

This commit is contained in:
mountainbug95 2020-02-04 17:09:00 -06:00
parent 878bb9bf43
commit acf3e2b0a6
No known key found for this signature in database
GPG key ID: 3EEE76B99FDF9A40

View file

@ -6,15 +6,14 @@
{{ define "main" }} {{ define "main" }}
{{ $section := .Site.GetPage "section" .Section }} {{ $section := .Site.GetPage "section" .Section }}
<article class="flex-l flex-wrap justify-between mw8 center ph3"> <article class="flex-l flex-wrap justify-between mw8 center ph3">
<header class="mt4 w-100"> <header class="mt4 w-100">
<p class="f6 b helvetica tracked"> <aside class="instapaper_ignoref b helvetica tracked">
{{/* {{/*
CurrentSection allows us to use the section title instead of inferring from the folder. CurrentSection allows us to use the section title instead of inferring from the folder.
https://gohugo.io/variables/page/#section-variables-and-methods https://gohugo.io/variables/page/#section-variables-and-methods
*/}} */}}
{{with .CurrentSection.Title }}{{. | upper }}{{end}} {{with .CurrentSection.Title }}{{. | upper }}{{end}}
</p> </aside>
<h1 class="f1 athelas mb1"> <h1 class="f1 athelas mb1">
{{- .Title -}} {{- .Title -}}
</h1> </h1>
@ -44,8 +43,7 @@
<span class="f6 mv4 dib tracked"> - {{ .WordCount}} words</span> <span class="f6 mv4 dib tracked"> - {{ .WordCount}} words</span>
{{ end }} {{ end }}
</header> </header>
<div class="nested-copy-line-height lh-copy serif f4 nested-links nested-img mid-gray pr4-l w-two-thirds-l">
<section class="nested-copy-line-height lh-copy serif f4 nested-links nested-img mid-gray pr4-l w-two-thirds-l">
{{- .Content -}} {{- .Content -}}
{{- partial "tags.html" . -}} {{- partial "tags.html" . -}}
<div class="mt6"> <div class="mt6">
@ -56,7 +54,7 @@
{{- partial "commento.html" . -}} {{- partial "commento.html" . -}}
{{ end }} {{ end }}
</div> </div>
</section> </div>
<aside class="w-30-l mt6-l"> <aside class="w-30-l mt6-l">
{{- partial "menu-contextual.html" . -}} {{- partial "menu-contextual.html" . -}}