Explorar el Código

Merge pull request #254 from budparr/162-fix-safari-reader-view

Safari Reader View lacks content
tags/2.6.0
Regis Philibert hace 5 años
padre
commit
641595d3a1
No account linked to committer's email address
Se han modificado 1 ficheros con 5 adiciones y 7 borrados
  1. 5
    7
      layouts/_default/single.html

+ 5
- 7
layouts/_default/single.html Ver fichero

{{ 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>
<span class="f6 mv4 dib tracked"> - {{ .WordCount}} words</span> <span class="f6 mv4 dib tracked"> - {{ .WordCount}} words</span>
{{ end }} {{ end }}
</header> </header>

<section class="nested-copy-line-height lh-copy serif f4 nested-links nested-img mid-gray pr4-l w-two-thirds-l">
<div 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 instapaper_ignoref">
{{ if .Site.DisqusShortname }} {{ if .Site.DisqusShortname }}
{{ template "_internal/disqus.html" . }} {{ template "_internal/disqus.html" . }}
{{ end }} {{ end }}
{{- 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" . -}}

Cargando…
Cancelar
Guardar