Commit 9b0563d6 authored by Laura Kalbag's avatar Laura Kalbag
Browse files

Delete redundant unworking \/posts\/single.html template

Re-add post meta to blog posts
parent 0a6dd07c
......@@ -3,9 +3,32 @@
<article class="h-entry">
<h1 class="page-title p-name">{{ .Page.Title }}</h1>
{{ if eq .Section "posts" -}}
<div class="entry-meta">
<p><time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">
{{- .Date.Format "2" | humanize }} {{ .Date.Format "January, 2006" -}}
</time>
</p>
</div>
{{ end }}
<div class="entry-content e-content">
{{ .Content }}
</div>
{{ if eq .Section "posts" -}}
<div class="entry-notes">
<p>Categorised under:
{{ range $index, $categories := .Params.categories }}
{{- if gt $index 0 }}, {{ end -}}
<a href="{{ "categories/" | relURL }}{{ . | urlize }}">{{ . }}</a>
{{- end }}.
Tagged with:
{{ range $index, $tags := .Params.tags }}
{{- if gt $index 0 }}, {{ end -}}
<a href="{{ "tags/" | relURL }}{{ . | urlize }}">{{ . }}</a>
{{- end }}.
</p>
</div>
{{ end }}
</article>
{{ end }}
{{ if ne .Type "notes" -}}
<div class="entry-meta">
<p>Posted: <time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">
<p><time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">
{{- .Date.Format "2" | humanize }} {{ .Date.Format "January, 2006" -}}
</time>
</p>
......
{{ define "header" }}{{ partial "header.html" . }}{{ end }}
{{ define "main" }}
<article class="h-entry">
<h1 class="page-title p-name">{{ .Page.Title }}</h1>
<div class="entry-meta">
<p>Posted: <time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">
{{- .Date.Format "2" | humanize }} {{ .Date.Format "January, 2006" -}}
</time>
</p>
</div>
<div class="entry-content e-content">
{{ .Content }}
</div>
<div class="entry-notes">
<p>Categorised under:
{{ range $index, $categories := .Params.categories }}
{{- if gt $index 0 }}, {{ end -}}
<a href="{{ "categories/" | relURL }}{{ . | urlize }}">{{ . }}</a>
{{- end }}.
Tagged with:
{{ range $index, $tags := .Params.tags }}
{{- if gt $index 0 }}, {{ end -}}
<a href="{{ "tags/" | relURL }}{{ . | urlize }}">{{ . }}</a>
{{- end }}.
</p>
</div>
</article>
{{ end }}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment