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

github.com/EmielH/tale-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.html38
1 files changed, 38 insertions, 0 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
new file mode 100644
index 0000000..fac4e58
--- /dev/null
+++ b/layouts/_default/single.html
@@ -0,0 +1,38 @@
+{{ partial "header.html" . }}
+
+<main>
+ <div class="post">
+ <div class="post-info">
+ <span>Written by</span>
+ {{ if .Params.Author }}
+ {{ .Params.Author }}
+ {{ else }}
+ {{ .Site.Params.Author }}
+ {{ end }}
+
+ {{ if .PublishDate }}
+ <br>
+ <span>on&nbsp;</span><time datetime="{{ .PublishDate }}">{{ .PublishDate.Format "January 2, 2006" }}</time>
+ {{ end }}
+ </div>
+
+ <h1 class="post-title">{{ .Title }}</h1>
+ <div class="post-line"></div>
+
+ {{ .Content }}
+
+ </div>
+
+ <div class="pagination">
+ {{ if .Next }}
+ <a href="{{ .Next.URL }}" class="left arrow">&#8592;</a>
+ {{ end }}
+ {{ if .Prev }}
+ <a href="{{ .Prev.URL }}" class="right arrow">&#8594;</a>
+ {{ end }}
+
+ <a href="#" class="top">Top</a>
+ </div>
+</main>
+
+{{ partial "footer.html" . }} \ No newline at end of file