From 87b26239876de3873cd1d66c8afa73c9f7a78f6e Mon Sep 17 00:00:00 2001 From: Jan Raasch Date: Fri, 11 Sep 2020 18:30:53 +0200 Subject: [PATCH 1/4] chore: update prettier-plugin-go-template --- package-lock.json | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9349620..ef2ab4d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,9 +11,9 @@ "dev": true }, "prettier-plugin-go-template": { - "version": "0.0.10", - "resolved": "https://registry.npmjs.org/prettier-plugin-go-template/-/prettier-plugin-go-template-0.0.10.tgz", - "integrity": "sha512-TaHPqiMK/zfk+YhvKRf/1WZDgQ6ffnlxJZX5rwphqfxBOVEezZQtYistTB348MKrKnnwKpyXZWpMRo0/KCVB+A==", + "version": "0.0.11-beta.3", + "resolved": "https://registry.npmjs.org/prettier-plugin-go-template/-/prettier-plugin-go-template-0.0.11-beta.3.tgz", + "integrity": "sha512-/w+fLMvA3Ago10CRNtFe9V9DQekcfo+tB08U+3HF6FcMBnuLxHwVl04KGHhNqFUF017pTfua2Aq9cHGkT+QoFA==", "dev": true } } diff --git a/package.json b/package.json index 446ec96..5f2fb0e 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,6 @@ "homepage": "https://github.com/janraasch/hugo-scroll#readme", "devDependencies": { "prettier": "^2.1.1", - "prettier-plugin-go-template": "0.0.10" + "prettier-plugin-go-template": "0.0.11-beta.3" } } From b86c9a50f2ceebbe4d902cf4dc52f1ad4090bfc4 Mon Sep 17 00:00:00 2001 From: Jan Raasch Date: Fri, 11 Sep 2020 18:31:08 +0200 Subject: [PATCH 2/4] chore: do not prettierignore index.html --- .prettierignore | 1 - 1 file changed, 1 deletion(-) diff --git a/.prettierignore b/.prettierignore index 9859f78..cf070c9 100644 --- a/.prettierignore +++ b/.prettierignore @@ -3,4 +3,3 @@ resources public static/font-awesome static/css/normalize.css -layouts/index.html From edef9334bcb3712e2ef1d912c4d268bcd9aec607 Mon Sep 17 00:00:00 2001 From: Jan Raasch Date: Fri, 11 Sep 2020 18:28:34 +0200 Subject: [PATCH 3/4] style: run format once --- layouts/index.html | 76 ++++++++++++++++++++++++++-------------------- 1 file changed, 43 insertions(+), 33 deletions(-) diff --git a/layouts/index.html b/layouts/index.html index 9f3daa3..86f1c90 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,36 +1,46 @@ {{ define "main" }} -{{ $headless := .Site.GetPage "/homepage" }} -{{ $sections := $headless.Resources.ByType "page" }} - -
- -
-
- {{ range $index_val, $elem_val := $sections }} -
-
-
-

{{ .Title }}

-
-
- {{ .Content }} -
-
-
-
+ {{ $headless := .Site.GetPage "/homepage" }} + {{ $sections := $headless.Resources.ByType "page" }} + +
+
+ {{ range $index_val, $elem_val := $sections }} +
+
+
+

{{ .Title }}

+
+
+ {{ .Content }} +
+
+
+
+ {{ end }} +
{{ end }} From 2773d0534b53be364313bda1ee4015f49f677a55 Mon Sep 17 00:00:00 2001 From: Jan Raasch Date: Fri, 11 Sep 2020 18:29:46 +0200 Subject: [PATCH 4/4] style: run format again --- layouts/index.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layouts/index.html b/layouts/index.html index 86f1c90..21781da 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -4,13 +4,15 @@