Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
laurakalbag-dot-com
laurakalbag-dot-com
Commits
9b0563d6
Commit
9b0563d6
authored
Feb 07, 2019
by
Laura Kalbag
⚡
Browse files
Delete redundant unworking \/posts\/single.html template
Re-add post meta to blog posts
parent
0a6dd07c
Changes
3
Hide whitespace changes
Inline
Side-by-side
layouts/_default/single.html
View file @
9b0563d6
...
...
@@ -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 }}
layouts/partials/summary.html
View file @
9b0563d6
{{ 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>
...
...
layouts/posts/single.html
deleted
100755 → 0
View file @
0a6dd07c
{{ 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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment