aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorÓscar Nájera <hello@oscarnajera.com>2018-07-16 01:11:07 +0200
committerÓscar Nájera <hello@oscarnajera.com>2018-07-16 01:11:07 +0200
commit6467d9d621438458c611e2030adcefa7b43c56ed (patch)
treeb04e3e5489752af92560a5218ac2c650b81a444b
parent487e6410cb1b3d2dcfa5498d51220639c571ed88 (diff)
downloadhugo-minimalist-theme-6467d9d621438458c611e2030adcefa7b43c56ed.tar.gz
hugo-minimalist-theme-6467d9d621438458c611e2030adcefa7b43c56ed.tar.bz2
hugo-minimalist-theme-6467d9d621438458c611e2030adcefa7b43c56ed.zip
Post metadata
-rw-r--r--layouts/_default/single.html15
-rw-r--r--layouts/partials/meta.html15
2 files changed, 26 insertions, 4 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 1fab028..c0abf4c 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,6 +1,6 @@
{{ define "main" }}
<article>
- <div id="post-header-cover" class="w-100 dt bg-center cover bg-black-30"
+ <div id="post-header-cover" class="w-100 vh-50 dt bg-center cover bg-black-30"
{{ with .Params.coverimage }}
style="background-image:url({{ . }})"
{{ end }} >
@@ -8,7 +8,10 @@
<h1 class="f1 lh-title">
{{ .Title }}</h1>
- <div class="f4 tracked">{{ .Date.Format "Mon, Jan 2, 2006" }}</div>
+ {{ if not (eq .Params.showMeta false) }}
+ <div class="f4 tracked mb3">{{ .Date.Format "Mon, Jan 2, 2006" }}</div>
+ {{ partial "meta.html" . }}
+ {{ end }}
</header>
</div>
@@ -39,6 +42,8 @@
</div>
</footer>
+ <!-- Pagination Actions for posts -->
+ {{ if not (eq .Params.showActions false) }}
<div class="mv3 tc">
{{ with .NextInSection }}
<a href="{{ .RelPermalink }}" class="dib f4 link br1 ma1 pa2 blue hover-bg-light-blue hover-white ba">
@@ -54,11 +59,13 @@
</a>
{{ end}}
</div>
- {{ if not (eq .Params.comments false) }}
+ {{ end}}
+
+ {{ if not (eq .Params.comments false) }}
<div class="mw7 center mv4 pa2">
{{ template "_internal/disqus.html" . }}
</div>
- {{ end }}
+ {{ end }}
</div>
</article>
{{ end }}
diff --git a/layouts/partials/meta.html b/layouts/partials/meta.html
new file mode 100644
index 0000000..84e76e5
--- /dev/null
+++ b/layouts/partials/meta.html
@@ -0,0 +1,15 @@
+{{ with .Params.categories }}
+<i class="fa fa-lg fa-bookmark"></i>
+{{ range . }}
+<a class="link underline-hover white mr3"
+ href="{{ $.Site.LanguagePrefix }}/categories/{{ . | urlize }}/">{{ . }}</a>
+{{ end }}
+{{ end }}
+
+{{ with .Params.tags }}
+<i class="fa fa-lg fa-tags"></i>
+{{ range . }}
+<a class="link underline-hover white"
+ href="{{ $.Site.LanguagePrefix }}/tags/{{ . | urlize }}/">{{ . }}</a>
+{{ end }}
+{{ end }}