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

github.com/jacobsun/hugo-theme-cole.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/_single.html')
-rw-r--r--layouts/partials/_single.html36
1 files changed, 36 insertions, 0 deletions
diff --git a/layouts/partials/_single.html b/layouts/partials/_single.html
new file mode 100644
index 0000000..550ea05
--- /dev/null
+++ b/layouts/partials/_single.html
@@ -0,0 +1,36 @@
+<main class="content">
+ <h1 class="title"><a href='{{ .RelPermalink }}' class="btn">{{ .Title }}</a></h1>
+ <div class="content">
+ {{ if .Content }}
+ {{ .Content }}
+ {{ else }}
+ <p class="no-content">No content.</p>
+ {{ end }}
+ </div>
+ <div class="meta">
+ <p class="published-date">
+ Published at: <time datetime="{{ .Date.Format "2006.01.02" }}">{{ .Date.Format "2006.01.02" }}</time>
+ </p>
+ {{ with .Params.categories }}
+ <p>Categories</p>
+ <ul class="categories control">
+ {{ range . }}
+ <li>
+ <a href="{{ "categories" | absURL }}/{{ . | urlize }}/" class="btn">{{ . }}</a>
+ </li>
+ {{ end }}
+ </ul>
+ {{ end }}
+ {{ with .Params.tags }}
+ <p>Tags:</p>
+ <ul class="tags control">
+ {{ range . }}
+ <li>
+ <a href="{{ "tags" | absURL }}/{{ . | urlize }}/" class="btn">{{ . }}</a>
+ </li>
+ {{ end }}
+ </ul>
+ {{ end }}
+ </div>
+</main>
+{{ partial "comment.html" . }}