aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/themes/hugo-xmag/layouts/_default/single.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/hugo-xmag/layouts/_default/single.html')
-rw-r--r--themes/hugo-xmag/layouts/_default/single.html41
1 files changed, 41 insertions, 0 deletions
diff --git a/themes/hugo-xmag/layouts/_default/single.html b/themes/hugo-xmag/layouts/_default/single.html
new file mode 100644
index 0000000..173ec3b
--- /dev/null
+++ b/themes/hugo-xmag/layouts/_default/single.html
@@ -0,0 +1,41 @@
+{{ partial "header.html" . }}
+<div class="container">
+<article>
+<div class="article-meta">
+
+ <div class="categories">
+ {{ range $i, $e := .Params.categories }}
+ {{ if $i }} &hercon; {{ end }}<a href="{{ relURL (print "/categories/" $e | urlize) }}">{{ $e }}</a>
+ {{ end }}
+ </div>
+
+ <h1><span class="title">{{ .Title }}</span></h1>
+
+ {{ if .Params.author }}
+ <h3 class="author">{{ partial "author_names.html" . }}</h3>
+ {{ end }}
+
+ {{ with .Params.tags }}
+ <p>{{ default "Tags: " (index $.Site.Params.text "tags") }}{{ range $i, $e := . }}{{ if $i }}; {{ end }}<a href="{{ relURL (print "/tags/" $e | urlize) }}">{{ $e }}</a>{{ end }}
+ </p>
+ {{ end }}
+ {{ partial "meta.html" . }}
+
+</div>
+
+{{ if .Params.toc }}
+{{ .TableOfContents }}
+{{ end }}
+
+<main>
+{{ .Content }}
+</main>
+
+{{ partial "author.html" . }}
+{{ partial "info.html" . }}
+{{ partial "prev_next.html" . }}
+{{ partial "comments.html" . }}
+</article>
+</div>
+
+{{ partial "footer.html" . }}