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:
authorFabien CASTERS <fabien@vaga.io>2019-01-19 12:47:03 +0300
committerFabien CASTERS <fabien@vaga.io>2019-01-20 20:07:11 +0300
commit90cbe1cab5e3ee9bc780c495242e6b1e4b2b3351 (patch)
tree341b53e4f21b3dd38db6b64a112c117b8716d3e7 /layouts/_default/single.html
Initial commit
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 }}