Merge branch 'theNewDynamic:master' into f/allow_multiple_mainsections

This commit is contained in:
Blackeye 2023-11-22 05:40:53 +01:00 committed by GitHub
commit 2f32889a1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 2 deletions

View File

@ -7,12 +7,12 @@
{{ $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">
<aside class="instapaper_ignoref b helvetica tracked"> <aside class="instapaper_ignoref b helvetica tracked ttu">
{{/* {{/*
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}} {{ .CurrentSection.Title }}
</aside> </aside>
{{ partial "social-share.html" . }} {{ partial "social-share.html" . }}
<h1 class="f1 athelas mt3 mb1"> <h1 class="f1 athelas mt3 mb1">

View File

@ -9,5 +9,6 @@
<div class="nested-links f5 lh-copy nested-copy-line-height"> <div class="nested-links f5 lh-copy nested-copy-line-height">
{{ .Summary }} {{ .Summary }}
</div> </div>
<a href="{{.RelPermalink}}" class="ba b--moon-gray bg-light-gray br2 color-inherit dib f7 hover-bg-moon-gray link mt2 ph2 pv1">{{ $.Param "read_more_copy" | default (i18n "readMore") }}</a>
</div> </div>
</div> </div>

View File

@ -12,4 +12,5 @@
<div class="nested-links f5 lh-copy nested-copy-line-height"> <div class="nested-links f5 lh-copy nested-copy-line-height">
{{ .Summary }} {{ .Summary }}
</div> </div>
<a href="{{.RelPermalink}}" class="ba b--moon-gray bg-light-gray br2 color-inherit dib f7 hover-bg-moon-gray link mt2 ph2 pv1">{{ $.Param "read_more_copy" | default (i18n "readMore") }}</a>
</div> </div>