Website Summary Files Commits Branches @commit @diff @stats
path: root / website / themes / natrium / layouts / _default / single.html
diff options
context:
space:
mode:
Commit3245f1f1404785d92c21eb381c08dee5a4be6bb7 (patch)
Author
 Dimitar Trendafilov <dimitar@coherent-labs.com>
2018-09-04 09:08:41 +0300
Committer
 Dimitar Trendafilov <dimitar@coherent-labs.com>
2018-09-04 09:08:41 +0300
Files3c245582fb5a2a9eaf8518f7272c03a6aaa2f635 /website/themes/natrium/layouts/_default/single.html
IPL-3245f1f1404785d92c21eb381c08dee5a4be6bb7.tar
IPL-3245f1f1404785d92c21eb381c08dee5a4be6bb7.tar.gz
IPL-3245f1f1404785d92c21eb381c08dee5a4be6bb7.zip
Parentae12c0a482298e4da9b816137ceb6131c7d4b9e4 (diff)
Moved site to website folder
1 files changed, 31 insertions, 0 deletions
-rw-r--r--website/themes/natrium/layouts/_default/single.html31
diff --git a/website/themes/natrium/layouts/_default/single.html b/website/themes/natrium/layouts/_default/single.html
new file mode 100644
index 0000000..240109d
--- /dev/null
+++ b/website/themes/natrium/layouts/_default/single.html
@@ -0,0 +1,31 @@
+{{ partial "header.html" . }}
+
+<main class="content" role="main">
+ <article class="article">
+ <h1 class="article-title">{{ .Title }}</h1>
+ {{ if eq .Section "post" }}
+ <span class="article-date">{{ .Date.Format "2006-01-02" }}</span>
+ {{ end }}
+
+ <div class="article-content">
+ {{ .Content }}
+ </div>
+
+ <ul class="article-taxonomy">
+ {{ if .Params.categories }}
+ <hr>
+ <li>
+ <i class="fa fa-category"></i>{{ range $index, $category := .Params.categories }}{{ if gt $index 0 }}{{ end }}<a href="{{ "categories/" | relURL }}{{ . | urlize }}">{{ . }}</a>{{ end }}
+ </li>
+ {{ end }}
+
+ {{ if .Params.tags }}
+ <li>
+ <i class="fa fa-tags"></i>{{ range $index, $tag := .Params.tags }}{{ if gt $index 0 }}{{ end }}<a href="{{ "tags/" | relURL }}{{ . | urlize }}">{{ . }}</a>{{ end }}
+ </li>
+ {{ end }}
+ </article>
+
+</main>
+
+{{ partial "footer.html" . }}