diff options
Moved site to website folder
1 files changed, 31 insertions, 0 deletions
| -rw-r--r-- | website/themes/natrium/layouts/_default/single.html | 31 |
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" . }} |
