Merge 4ffc469b26ef302c0cf89b5b3a9e90f93043c4e1 into 36bca91f22406d0b2515d5286857e00b1cbc72e1

This commit is contained in:
Ramiro Morales 2025-01-22 14:25:25 +00:00 committed by GitHub
commit 2d077b96e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,8 +4,10 @@
{{ end }}
{{ define "main" }}
{{- $related_content := .RegularPages.Related . -}}
{{- $needs_aside := or .Params.toc $related_content -}}
{{ $section := .Site.GetPage "section" .Section }}
<article class="flex-l flex-wrap justify-between mw8 center ph3">
<article class="flex-l flex-wrap justify-between {{ if $needs_aside }}mw8{{ else }}mw7{{ end }} center ph3">
<header class="mt4 w-100">
<aside class="instapaper_ignoref b helvetica tracked ttu">
{{/*
@ -47,7 +49,7 @@
<span class="f6 mv4 dib tracked"> - {{ i18n "wordCount" .WordCount }} </span>
{{ end }}
</header>
<div class="nested-copy-line-height lh-copy {{ $.Param "post_content_classes" | default "serif"}} f4 nested-links {{ $.Param "text_color" | default "mid-gray" }} {{ cond (eq $.Site.Language.LanguageDirection "rtl") "pl4-l" "pr4-l" }} w-two-thirds-l">
<div class="nested-copy-line-height lh-copy {{ $.Param "post_content_classes" | default "serif"}} f4 nested-links {{ $.Param "text_color" | default "mid-gray" }} {{ cond (eq $.Site.Language.LanguageDirection "rtl") "pl4-l" "pr4-l" }} {{ if $needs_aside }}w-two-thirds-l{{ else }}w-100-l{{ end }}">
{{- .Content -}}
{{- partial "tags.html" . -}}
<div class="mt6 instapaper_ignoref">
@ -59,10 +61,11 @@
{{ end }}
</div>
</div>
{{- if $needs_aside -}}
<aside class="w-30-l mt6-l">
{{- partial "menu-contextual.html" . -}}
</aside>
{{- end -}}
</article>
{{ end }}