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

github.com/vaga/hugo-theme-m10c.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.html29
1 files changed, 29 insertions, 0 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
new file mode 100644
index 0000000..9c36f61
--- /dev/null
+++ b/layouts/_default/single.html
@@ -0,0 +1,29 @@
+{{ define "main" }}
+ <article class="post">
+ <header class="post-header">
+ <h1 class ="post-title">{{ .Title }}</h1>
+ <div class="post-meta">
+ <div>
+ {{ partial "icon.html" "calendar" }}
+ {{ .PublishDate.Format "Jan 2, 2006" }}
+ </div>
+ <div>
+ {{ partial "icon.html" "clock" }}
+ {{ .ReadingTime }} min read
+ </div>
+ <div>
+ {{ partial "icon.html" "tag" }}
+ {{ range .Param "tags" -}}
+ {{- $name := . -}}
+ {{- with $.Site.GetPage (printf "/%s/%s" "tags" $name) -}}
+ <a class="tag" href="{{ .Permalink }}">{{ $name }}</a>
+ {{- end -}}
+ {{- end -}}
+ </div>
+ </div>
+ </header>
+ <div class="post-content">
+ {{ .Content }}
+ </div>
+ </article>
+{{ end }}