From 4477b3033ee9ada7eb3fb89f2ded351a2b16f1bb Mon Sep 17 00:00:00 2001 From: iGor milhit Date: Tue, 30 Jul 2019 12:56:41 +0200 Subject: [PATCH] layout: display basic taxonomies information * NEW Adds a list template. * NEW Displays the categories and tags of a blog post. Co-Authored-by: Igor Milhit --- layouts/_default/list.html | 19 +++++++++++++ layouts/_default/single.html | 52 +++++++++++++----------------------- 2 files changed, 38 insertions(+), 33 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index e69de29..4c5c352 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -0,0 +1,19 @@ +{{ define "main" }} +
+
+
+

{{.Title}}

+
+ + {{.Content}} +
+ +
+{{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index ddcb178..e5de733 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -2,43 +2,29 @@

{{ .Title }}

-

{{ .Date.Format "2006-01-02" }}

+
{{ .Content }}
- -{{/* - - -*/}} {{ end }}