From cd003e32ea2799a4559f38ec339e4f3a5e201398 Mon Sep 17 00:00:00 2001 From: SerKo Date: Wed, 13 Apr 2022 03:01:56 +0800 Subject: [PATCH] style: update style --- layouts/_default/list.html | 21 ++++++++++++++++++- layouts/_default/single.html | 39 +----------------------------------- layouts/index.html | 15 -------------- layouts/partials/prose.html | 38 +++++++++++++++++++++++++++++++++++ 4 files changed, 59 insertions(+), 54 deletions(-) create mode 100644 layouts/partials/prose.html diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 41b8269..26bda1d 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,3 +1,22 @@ {{ define "main" }} - +
+
+
+
{{ .Title }}
+
+ {{- partial "prose.html" . -}} +
+ +
{{ end }} \ No newline at end of file diff --git a/layouts/_default/single.html b/layouts/_default/single.html index f81fed7..6463bb5 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -12,43 +12,6 @@ {{- end -}} -
- {{- .Content -}} -
+ {{- partial "prose.html" . -}} {{ end }} \ No newline at end of file diff --git a/layouts/index.html b/layouts/index.html index 9f849ac..f319bf9 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,17 +1,2 @@ {{ define "main" }} -
- {{ .Content }} - -
{{ end }} \ No newline at end of file diff --git a/layouts/partials/prose.html b/layouts/partials/prose.html new file mode 100644 index 0000000..fb4dce8 --- /dev/null +++ b/layouts/partials/prose.html @@ -0,0 +1,38 @@ +
+ {{- .Content -}} +
\ No newline at end of file