Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/AngeloStavrow/indigo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngelo Stavrow <contact@angelostavrow.com>2020-05-27 23:31:29 +0300
committerGitHub <noreply@github.com>2020-05-27 23:31:29 +0300
commit4dc7f1b9bd1625b313ec64d2d7d8e2c59d647017 (patch)
tree8540ae250c98ccc2594b44965645b49841f9254a
parentac690a0e8083881c74b6995fd9cac5bc4a7da575 (diff)
parent4a88069e3015e62a8203e3bb9c8d0479af55ade6 (diff)
Merge pull request #85 from AngeloStavrow/only-show-date-if-date-param-exists
Only show date on pages with date parameter
-rw-r--r--layouts/_default/single.html19
1 files changed, 10 insertions, 9 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 6892d74..2f388f7 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -2,21 +2,22 @@
{{ $baseurl := .Site.BaseURL | sanitizeurl }}
{{ $author := .Site.Params.Author }}
{{ if .Params.Author }}
- {{ $author = .Params.Author }}
+{{ $author = .Params.Author }}
{{ end }}
<div id="content">
<article class="h-entry">
<header>
<h1 class="post-title p-name">{{ .Title }}</h1>
- {{ if not .Params.Menu }}
+ {{ if .Params.Date }}
<p class="post-date">Posted on
<time class="dt-published" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}">
- {{ .PublishDate.Format "2 January, 2006 at 15:04 MST" }}
- </time> {{ if $author }} by <a href="{{ .Site.BaseURL }}" class="p-author h-card" rel="author">{{ $author }}</a>{{ end }}
+ {{ .PublishDate.Format "2 January, 2006 at 15:04 MST" }}
+ </time> {{ if $author }} by <a href="{{ .Site.BaseURL }}" class="p-author h-card"
+ rel="author">{{ $author }}</a>{{ end }}
</p>
{{ end }}
{{ if .Params.categories }}
- <p class="post-tag">Category:
+ <p class="post-tag">Category:
{{ range .Params.categories }}
<a href="{{ $baseurl }}/categories/{{ . | urlize }}" class="post-tag p-category">{{ . }}</a>
{{ end }}
@@ -31,13 +32,13 @@
<a class="permalink u-url" href="{{ .Permalink }}">{{ .Site.Params.PermalinkText }}</a>
{{ if .Params.tags }}
<hr class="post-underline">
- <p class="post-tag">Tags for this post:
- {{ range .Params.tags }}
+ <p class="post-tag">Tags for this post:
+ {{ range .Params.tags }}
<a href="{{ $baseurl }}/tags/{{ . | urlize }}" class="post-tag p-category">{{ . }}</a>
- {{ end }}
+ {{ end }}
</p>
{{ end }}
</footer>
</article>
</div>
-{{ partial "footer.html" . }}
+{{ partial "footer.html" . }} \ No newline at end of file