From 035d9defe8adabaa1fa99451e69a2f901b9eb1b8 Mon Sep 17 00:00:00 2001 From: julien Date: Wed, 17 Sep 2025 14:39:57 +0200 Subject: [PATCH] Updates --- .gitmodules | 3 ++ data/.contact.yml.kate-swp | Bin 62 -> 0 bytes data/contact.yml | 8 ++--- i18n/en.yaml | 6 ++-- i18n/fr.yaml | 4 +-- themes/hargo-hugo/layouts/contact/list.html | 10 ++++-- .../layouts/partials/contact-form.html | 29 +++++++++++++----- .../hargo-hugo/layouts/partials/footer.html | 4 +-- themes/hargo-hugo/layouts/partials/head.html | 4 +++ 9 files changed, 47 insertions(+), 21 deletions(-) delete mode 100644 data/.contact.yml.kate-swp diff --git a/.gitmodules b/.gitmodules index 0c65c23..944438f 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule "themes/osm"] path = themes/osm url = https://github.com/Hanzei/hugo-component-osm.git +[submodule "themes/hugo-cloak-email"] + path = themes/hugo-cloak-email + url = https://github.com/martignoni/hugo-cloak-email.git diff --git a/data/.contact.yml.kate-swp b/data/.contact.yml.kate-swp deleted file mode 100644 index 6aedeaf1d88f3ef1273e4c6bb0d5922d4a6c70db..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 62 zcmZQzU=Z?7EJ;-eE>A2_aLdd|RWQ;sU|?VnVG)}3+o2`=?1PNf1Je^DEbpKAcPZEt OD8mKB96-#N=L!Hql@d7s diff --git a/data/contact.yml b/data/contact.yml index 04129af..434340b 100644 --- a/data/contact.yml +++ b/data/contact.yml @@ -3,13 +3,13 @@ contact: enable : true # office office: - title : "Central Office" + title : "Mais où suis-je ?" content : "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna" # other information comes from "config.toml" # opennig hour - opennigHour: - title : "Opening Hours" + openningHour: + title : "Au bureau" dayTimeList: - dayTime : "Monday: 9:00 – 19:00" - dayTime : "Tuesday: 9:00 – 19:00" @@ -21,4 +21,4 @@ contact: ####################### google map ######################## map: - enable: true \ No newline at end of file + enable: true diff --git a/i18n/en.yaml b/i18n/en.yaml index d3ead2f..84cb62f 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -1,6 +1,6 @@ - id: important_link - translation: Important Links + translation: Quelques liens... - id: connect_us - translation: Connect With Us + translation: Restons en lien... - id: shortDescriptionTitle - translation: In a few words... + translation: En quelques mots... diff --git a/i18n/fr.yaml b/i18n/fr.yaml index e3b74ae..84cb62f 100644 --- a/i18n/fr.yaml +++ b/i18n/fr.yaml @@ -1,6 +1,6 @@ - id: important_link - translation: Liens Importants + translation: Quelques liens... - id: connect_us - translation: Contactez-nous + translation: Restons en lien... - id: shortDescriptionTitle translation: En quelques mots... diff --git a/themes/hargo-hugo/layouts/contact/list.html b/themes/hargo-hugo/layouts/contact/list.html index 6887207..453fd2a 100644 --- a/themes/hargo-hugo/layouts/contact/list.html +++ b/themes/hargo-hugo/layouts/contact/list.html @@ -22,15 +22,19 @@ -
- {{ with site.Data.contact.contact.opennigHour }} +
+ +
+
+

{{i18n `connect_us`}}

+ {{- partial "contact-form.html" . -}}
diff --git a/themes/hargo-hugo/layouts/partials/contact-form.html b/themes/hargo-hugo/layouts/partials/contact-form.html index 75c5b01..b4e3258 100644 --- a/themes/hargo-hugo/layouts/partials/contact-form.html +++ b/themes/hargo-hugo/layouts/partials/contact-form.html @@ -1,11 +1,26 @@
+ +
- - - - -
-
-
+ + + +
+ +
+ + +
+ +
+
+ +
+ +
+
+
diff --git a/themes/hargo-hugo/layouts/partials/footer.html b/themes/hargo-hugo/layouts/partials/footer.html index 0667f04..d7ab0e8 100644 --- a/themes/hargo-hugo/layouts/partials/footer.html +++ b/themes/hargo-hugo/layouts/partials/footer.html @@ -33,8 +33,8 @@
-
Contact us
- {{- partial "contact-form.html" . -}} +
...
+
diff --git a/themes/hargo-hugo/layouts/partials/head.html b/themes/hargo-hugo/layouts/partials/head.html index b08b726..1db9f34 100644 --- a/themes/hargo-hugo/layouts/partials/head.html +++ b/themes/hargo-hugo/layouts/partials/head.html @@ -31,4 +31,8 @@ {{ "" | safeHTML }} + + {{ "" | safeHTML }} + +