From bb708617b647c09c13b2be1d23ce850075d8702b Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Tue, 10 Apr 2018 13:11:43 +0000 Subject: fix some layouts. --- layouts/_default/index.html | 6 ------ layouts/index.html | 6 ++++++ layouts/partials/article-header.html | 18 ++++++++++-------- 3 files changed, 16 insertions(+), 14 deletions(-) delete mode 100644 layouts/_default/index.html create mode 100644 layouts/index.html diff --git a/layouts/_default/index.html b/layouts/_default/index.html deleted file mode 100644 index 7d633e0..0000000 --- a/layouts/_default/index.html +++ /dev/null @@ -1,6 +0,0 @@ -{{ define "main" }} -
- {{ partial "article-header.html" . }} -
{{.Content}}
-
-{{ end }} diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..7d633e0 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,6 @@ +{{ define "main" }} +
+ {{ partial "article-header.html" . }} +
{{.Content}}
+
+{{ end }} diff --git a/layouts/partials/article-header.html b/layouts/partials/article-header.html index 1039b6c..d096ded 100644 --- a/layouts/partials/article-header.html +++ b/layouts/partials/article-header.html @@ -1,12 +1,14 @@
{{ if .Params.cover }}{{ end }}

{{.Title}}

- {{ if not .Params.hide_date }} - - {{ end }} - +
-- cgit v1.2.3