Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/heyeshuang/hugo-theme-tokiwa.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/single.html')
-rwxr-xr-xlayouts/_default/single.html21
1 files changed, 1 insertions, 20 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 5e79100..a5e68e3 100755
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,5 +1,4 @@
{{ define "header" }}
-{{/* We can override any block in the baseof file be defining it in the template */}}
{{ partial "page-header.html" . }}
{{ end }}
@@ -7,28 +6,10 @@
{{ $section := .Site.GetPage "section" .Section }}
<article>
- <header>
- <p>
- {{/*
- CurrentSection allows us to use the section title instead of inferring from the folder.
- https://gohugo.io/variables/page/#section-variables-and-methods
- */}}
- {{with .CurrentSection.Title }}{{. | upper }}{{end}}
- </p>
- <h1>
- {{- .Title -}}
- </h1>
- {{/* Hugo uses Go's date formatting is set by example. Here are two formats */}}
- <time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">
- {{- .Date.Format "January 2, 2006" -}}
- </time>
- </header>
-
- <section class="mx-auto px-4 content">
+ <section class="mx-auto content">
<div class="c-rich-text">
{{- .Content -}}
</div>
- {{- partial "tags.html" . -}}
<div>
{{ template "_internal/disqus.html" . }}
</div>