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 diff --git a/layouts/index.html b/layouts/index.html index 9f3daa3..21781da 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,36 +1,48 @@ {{ define "main" }} -{{ $headless := .Site.GetPage "/homepage" }} -{{ $sections := $headless.Resources.ByType "page" }} - +
+
{{ range $index_val, $elem_val := $sections }} -
-
-
-

{{ .Title }}

-
-
- {{ .Content }} -
-
-
-
+
+
+
+

{{ .Title }}

+
+
+ {{ .Content }} +
+
+
+
{{ end }} -
+ {{ end }} 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" } }