From d5756ce9673ed102006991e8cdcb29c964c45bc2 Mon Sep 17 00:00:00 2001 From: Hans van Luttikhuizen-Ross Date: Mon, 23 Oct 2023 09:53:53 +0200 Subject: [PATCH] Reorder HTML attributes using Prettier --- .idea/codeStyles/Project.xml | 45 +++++++++++++++++++ .prettierrc | 6 ++- .../2023-01-18-de-kittens-zijn-er/index.html | 2 +- layouts/faq/single.html | 4 +- layouts/index.html | 14 +++--- layouts/kittenbeleid/single.html | 4 +- layouts/kittens/section.html | 8 ++-- layouts/nieuws/section.html | 4 +- layouts/onze-poezen/section.html | 6 +-- layouts/partials/contact-button.html | 2 +- layouts/partials/contact-form.html | 20 ++++----- layouts/partials/footer.html | 6 +-- layouts/partials/header.html | 2 +- layouts/partials/navigation.html | 12 ++--- package-lock.json | 13 ++++++ package.json | 1 + 16 files changed, 106 insertions(+), 43 deletions(-) diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml index 42f268f..b47928f 100644 --- a/.idea/codeStyles/Project.xml +++ b/.idea/codeStyles/Project.xml @@ -2,8 +2,39 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.prettierrc b/.prettierrc index a7c0528..9b26375 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,5 +1,9 @@ { - "plugins": ["prettier-plugin-go-template", "prettier-plugin-tailwindcss"], + "plugins": [ + "prettier-plugin-go-template", + "prettier-plugin-tailwindcss", + "prettier-plugin-organize-attributes" + ], "overrides": [ { "files": ["*.html"], diff --git a/content/nieuws/2023-01-18-de-kittens-zijn-er/index.html b/content/nieuws/2023-01-18-de-kittens-zijn-er/index.html index 5ca03af..379b657 100644 --- a/content/nieuws/2023-01-18-de-kittens-zijn-er/index.html +++ b/content/nieuws/2023-01-18-de-kittens-zijn-er/index.html @@ -18,8 +18,8 @@

De kittens van Hamana diff --git a/layouts/faq/single.html b/layouts/faq/single.html index c343c28..58b4657 100644 --- a/layouts/faq/single.html +++ b/layouts/faq/single.html @@ -4,9 +4,9 @@

{{ with (resources.Get "photos/yuki-ginny-balcony.png").Process "resize 640x webp" }} Yuki en Ginny op het balkon @@ -20,9 +20,9 @@

{{ end }} diff --git a/layouts/index.html b/layouts/index.html index 94033bf..6867740 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -4,9 +4,9 @@
{{ with (resources.Get "photos/yuki-basking-bed-ginny-washing-in-bg.jpg").Process "webp" }} Yuki basking in the sun on bed {{ end }} @@ -22,14 +22,14 @@

Over ons

@@ -38,9 +38,9 @@

Over ons

@@ -58,8 +58,8 @@

Over ons

class="grid h-full w-full place-content-center bg-orange/75 backdrop-blur-xs" > Veelgestelde vragen
@@ -75,8 +75,8 @@

Over ons

class="grid h-full w-full place-content-center bg-orange/75 backdrop-blur-xs" > Kittens @@ -92,8 +92,8 @@

Over ons

class="grid h-full w-full place-content-center bg-orange/75 backdrop-blur-xs" > Onze poezen diff --git a/layouts/kittenbeleid/single.html b/layouts/kittenbeleid/single.html index c82be5e..09dbb91 100644 --- a/layouts/kittenbeleid/single.html +++ b/layouts/kittenbeleid/single.html @@ -4,9 +4,9 @@
{{ with (resources.Get "photos/avatar-kitten-portret.jpg").Process "resize 640x webp" }} Jonge Ginny @@ -15,9 +15,9 @@

Ons kittenbeleid

{{ end }} diff --git a/layouts/kittens/section.html b/layouts/kittens/section.html index a8bc506..ebeb548 100644 --- a/layouts/kittens/section.html +++ b/layouts/kittens/section.html @@ -4,9 +4,9 @@
{{ with (resources.Get "photos/avatar-kittens-groep.jpg").Process "resize 640x webp" }} De Avatarkittensk
@@ -16,8 +16,8 @@

De kittens van Hamana

Het laatste nieuws @@ -26,9 +26,9 @@

De kittens van Hamana

{{ end }}
@@ -39,9 +39,9 @@

De kittens van Hamana

{{ with .Resources.Get "photo" }} {{ .Title }} {{ end }} diff --git a/layouts/nieuws/section.html b/layouts/nieuws/section.html index b7570b2..90a90b1 100644 --- a/layouts/nieuws/section.html +++ b/layouts/nieuws/section.html @@ -11,9 +11,9 @@

Nieuws

{{ with .Resources.Get "photo" }} {{ .Title }} {{ end }}
@@ -46,9 +46,9 @@

{{ with .Resources.Get "photo" }} {{ .Title }} {{ end }}

diff --git a/layouts/onze-poezen/section.html b/layouts/onze-poezen/section.html index ea5301b..017ad0d 100644 --- a/layouts/onze-poezen/section.html +++ b/layouts/onze-poezen/section.html @@ -4,9 +4,9 @@
{{ with (resources.Get "photos/yuki-ginny-close-up.jpg").Process "resize 1024x webp" }} Yuki and Ginny close up {{ end }}
@@ -26,9 +26,9 @@

Onze poezen

{{ with (.Resources.Get "photo").Process "resize 576x webp" }} {{ .Title }} {{ end }}
@@ -45,9 +45,9 @@

{{ .Title }}

{{ with (.Resources.Get "photo").Process "resize 576x webp" }} {{ .Title }} {{ end }}
diff --git a/layouts/partials/contact-button.html b/layouts/partials/contact-button.html index eb491a6..6137107 100644 --- a/layouts/partials/contact-button.html +++ b/layouts/partials/contact-button.html @@ -1,8 +1,8 @@

Nog vragen?

Contact diff --git a/layouts/partials/contact-form.html b/layouts/partials/contact-form.html index 0ca4431..411e7a3 100644 --- a/layouts/partials/contact-form.html +++ b/layouts/partials/contact-form.html @@ -2,9 +2,9 @@ {{ with (resources.Get "photos/yuki-ginny-balcony-looking-outside-together.jpg").Process "webp" }}
Yuki and Ginny looking outside from the balcony together
@@ -16,20 +16,20 @@

Contact

{{- partial "instagram-logo" . -}} @@ -37,42 +37,42 @@

Contact

@@ -83,9 +83,9 @@

Contact

diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 41051a5..6587170 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -2,20 +2,20 @@
{{- partial "instagram-logo" . -}} @@ -34,9 +34,9 @@ {{ if .Site.Params.umami.enabled }} | Privacy-vriendelijke analytics met umami. {{ end }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 0e25672..16a6664 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -6,9 +6,9 @@
{{ with (resources.Get "logo-cats.png").Process "webp drawing" }} Cattery Hamana {{ end }} diff --git a/layouts/partials/navigation.html b/layouts/partials/navigation.html index 62b0404..2c166dd 100644 --- a/layouts/partials/navigation.html +++ b/layouts/partials/navigation.html @@ -8,26 +8,26 @@ {{- partial "facebook-logo" . -}} {{- partial "instagram-logo" . -}} -
+