Update single.html

This commit is contained in:
Altonss 2022-08-21 15:40:11 +02:00 committed by GitHub
parent 1ecbffed83
commit 524993912e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@
{{ $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 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
@ -15,7 +15,7 @@
{{with .CurrentSection.Title }}{{. | upper }}{{end}} {{with .CurrentSection.Title }}{{. | upper }}{{end}}
</aside> </aside>
{{ partial "social-share.html" . }} {{ partial "social-share.html" . }}
<h1 class="f1 athelas mt3 mb1"> <h1 class="f1 mt3 mb1">
{{- .Title -}} {{- .Title -}}
</h1> </h1>
{{ with .Params.author | default .Site.Params.author }} {{ with .Params.author | default .Site.Params.author }}