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

github.com/parsiya/Hugo-Octopress.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/page/single.html')
-rwxr-xr-xlayouts/page/single.html37
1 files changed, 37 insertions, 0 deletions
diff --git a/layouts/page/single.html b/layouts/page/single.html
new file mode 100755
index 0000000..3ff3f6e
--- /dev/null
+++ b/layouts/page/single.html
@@ -0,0 +1,37 @@
+<!-- Layout for individual pages -->
+
+{{ partial "header.html" . }}
+
+<div id="main">
+ <div id="content">
+ <div>
+ <article class="hentry" role="article">
+ <header>
+ <h1 class="entry-title">
+ {{ .Title }} <!-- we don't need page title to be a link on the actual page -->
+ </h1>
+ <p class="meta">{{ .Date.Format "Jan 2, 2006" }} - {{ .ReadingTime }} minute read - {{ if .Site.Params.disqusShortname }} <a href="{{ .Permalink }}#disqus_thread">Comments</a>{{ end }}
+
+ <!-- if you want anything in the header between Disqus comments and categories add them here -->
+
+ {{ if isset .Params "categories" }}
+ <!-- <br/> this will make the categories go to the second line and mess with the title -->
+ {{ range .Params.categories }}<a class="label" href="{{ "/categories/" | absURL }}{{ . | urlize | lower }}">{{ . }}</a>{{ end }}
+ {{ end }}</p>
+ </header>
+ <div class="entry-content">
+ <!-- insert table of contents if it is set either in the config file or in the frontmatter - frontmatter has priority -->
+ {{ $.Scratch.Set "pagetoc" .TableOfContents }}
+ {{ if or (and (isset .Params "toc") (eq .Params.toc true)) (and (not (isset .Params "toc")) (eq .Site.Params.tableOfContents true)) }}
+ {{ $.Scratch.Get "pagetoc" }}
+ {{ end }}
+ {{ .Content }}
+ </div>
+ {{ partial "post_footer.html" . }}
+ </article>
+ </div>
+ {{ partial "sidebar.html" . }}
+ </div>
+</div>
+
+{{ partial "footer.html" . }}