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

github.com/bake/solar-theme-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r--layouts/_default/single.html16
1 files changed, 7 insertions, 9 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index b7ca924..fc9efa7 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,11 +1,9 @@
-{{ partial "header.html" . }}
-<article class="post">
- <h1><a href="{{ .Permalink }}">{{ .Title }}</a> {{ if .Draft }}(Draft){{ end }}</h1>
+{{ define "main" }}
+ <article class="post">
+ <h1><a href="{{ .Permalink }}">{{ .Title }}</a> {{ if .Draft }}(Draft){{ end }}</h1>
- <div class="post-content">
- {{ .Content | safeHTML }}
- </div>
+ <div class="post-content">{{ .Content | safeHTML }}</div>
- <p class="meta">Posted on <span class="postdate">{{ .Date.Format "02. January 2006" }}</span></p>
-</article>
-{{ partial "footer.html" . }} \ No newline at end of file
+ <p class="meta">Posted on <span class="postdate">{{ .Date.Format "02. January 2006" }}</span></p>
+ </article>
+{{ end }}