summaryrefslogtreecommitdiff
path: root/themes/m10c/layouts/_default/single.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/m10c/layouts/_default/single.html')
-rw-r--r--themes/m10c/layouts/_default/single.html34
1 files changed, 34 insertions, 0 deletions
diff --git a/themes/m10c/layouts/_default/single.html b/themes/m10c/layouts/_default/single.html
new file mode 100644
index 0000000..53cc794
--- /dev/null
+++ b/themes/m10c/layouts/_default/single.html
@@ -0,0 +1,34 @@
+{{ define "main" }}
+ <article class="post">
+ <header class="post-header">
+ <h1 class ="post-title">{{ .Title }}</h1>
+ <div class="post-meta">
+ <div>
+ {{ partial "icon.html" (dict "ctx" $ "name" "calendar") }}
+ {{ .PublishDate.Format "Jan 2, 2006" }}
+ </div>
+ <div>
+ {{ partial "icon.html" (dict "ctx" $ "name" "clock") }}
+ {{ .ReadingTime }} min read
+ </div>
+ {{- with .Params.tags -}}
+ <div>
+ {{ partial "icon.html" (dict "ctx" $ "name" "tag") }}
+ {{ range . -}}
+ {{- with $.Site.GetPage (printf "/%s/%s" "tags" . ) -}}
+ <a class="tag" href="{{ .Permalink }}">{{ .Title }}</a>
+ {{- end -}}
+ {{- end -}}
+ </div>
+ {{- end -}}
+ </div>
+ </header>
+ <div class="post-content">
+ {{ .Content }}
+ </div>
+ <div class="post-footer">
+ <script defer src="https://commento.rogs.me/js/commento.js"></script>
+ <div id="commento"></div>
+ </div>
+ </article>
+{{ end }}