From 75f3cc4b0699f0c313711d44bcb939d9c0a6d924 Mon Sep 17 00:00:00 2001 From: Andreas Hnida Date: Mon, 19 Feb 2024 11:50:55 +0000 Subject: [PATCH] section und columns shortcodes implementiert --- assets/scss/custom.scss | 9 ++ config/_default/params.toml | 8 +- content/german/_index.md | 133 +++++++----------- themes/hugoplate/layouts/_default/baseof.html | 1 + themes/hugoplate/layouts/index.html | 29 +++- .../components/IconHeaderSubheaderText.html | 18 --- .../components/iconheadersubheadertext.html | 14 ++ .../layouts/partials/testPartial.html | 3 + .../hugoplate/layouts/shortcodes/columns.html | 7 + .../hugoplate/layouts/shortcodes/section.html | 4 + .../hugoplate/layouts/shortcodes/slider.html | 0 11 files changed, 121 insertions(+), 105 deletions(-) delete mode 100644 themes/hugoplate/layouts/partials/components/IconHeaderSubheaderText.html create mode 100644 themes/hugoplate/layouts/partials/components/iconheadersubheadertext.html create mode 100644 themes/hugoplate/layouts/partials/testPartial.html create mode 100644 themes/hugoplate/layouts/shortcodes/columns.html create mode 100644 themes/hugoplate/layouts/shortcodes/section.html create mode 100644 themes/hugoplate/layouts/shortcodes/slider.html diff --git a/assets/scss/custom.scss b/assets/scss/custom.scss index b376f16..97de176 100755 --- a/assets/scss/custom.scss +++ b/assets/scss/custom.scss @@ -16,8 +16,17 @@ a { transition: 0.3s ease-in-out; } +h1, h2, h3, h4, h5, h6 { + font-weight:normal; +} + /**************** Component Styles ******************/ +// Columns Shortcode + + + + // Verua Slider .verua-slider-wrapper { position: relative; diff --git a/config/_default/params.toml b/config/_default/params.toml index 18ed46a..628e1e7 100755 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -51,7 +51,7 @@ show_description = true show_tags = true show_categories = true - +# TODO Change Metadate for OG and Twitter Card # seo meta data for OpenGraph / Twitter Card # seo module: https://github.com/gethugothemes/hugo-modules/tree/master/seo-tools/basic-seo [metadata] @@ -73,10 +73,10 @@ mastodon = "" # Your verification code # cookies # cookies module: https://github.com/gethugothemes/hugo-modules/tree/master/components/cookie-consent [cookies] -enable = false +enable = true expire_days = 60 -content = "This site uses cookies. By continuing to use this website, you agree to their use." -button = "I Accept" +content = "Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen." +button = "Verstanden" ######################## sidebar widgets ######################### [widgets] diff --git a/content/german/_index.md b/content/german/_index.md index 5b0e62c..dbb3000 100755 --- a/content/german/_index.md +++ b/content/german/_index.md @@ -1,87 +1,62 @@ ---- -# Hero Slider -heroslider: - - title: "Willkommen auf unserer Homepage!" - image: "startseite/startseite-slide.jpg" - - title: "Gemeinsam neue Wege gehen." - image: "startseite/startseite-slide-2.jpg" - - title: "Administration optimieren, Zeit gewinnen." - image: "startseite/startseite-slide-3.jpg" ++++ +title = 'Home' ++++ -# Key Features +{{% section %}} +{{% columns %}} -keyfeatures: - - icon: "car" - color: "lime-300" - textcolor: "black" - title: "Freiberufliche Pflegefachpersonen" - content: "Die Applikation **VeruA ** Verwaltung & Abrechnung** unterstützt Sie bei Anamnese, Planung, Dokumentation und Abrechnung in der ambulanten Pflege.

VeruA ist optimiert für den Einsatz in einer Einzelperson-Version oder für Teams, die gemeinsam Klienten betreuen und sich gegenseitig Einsicht in die Pflegedokumentation ermöglichen wollen." - - icon: "users" - color: "slate-800" - textcolor: "white" - title: "Spitex-Organisationen" - content: "Vereinfachen Sie die Dokumentation, Administration und Abrechnung in Ihrer Spitex-Organisation mit der Applikation **VeruA ** Verwaltung & Abrechnung.**

+{{% columns %}} - Unser Angebot richtet sich besonders an Organisationen, die eine schlanke und kostengünstige Applikation suchen und auf guten Support nicht verzichten wollen.

Bedarfsermittlungen mit **interRAI** erstellen?

**Kein Problem!**

Seit dem ersten Quartal 2020 bieten wir Ihnen die **Schnittstelle zum Perigon interRAI Cloud** an." - - icon: "bank" - color: "white" - textcolor: "black" - title: "Kantonale Abrechnung" - content: "In der Vielfalt der kantonalen Abrechnungen und Bestimmungen stehen wir Ihnen zur Seite.

Wir setzen die kantonalen Vorgaben für Sie um und unterstützen Sie mit diversen Export-Funktionen und Auswertungen.

- [ERFAHREN SIE MEHR ...](/#) -" +#### Title 1 -# Features -featureslead: - headline: "Das Werkzeug für die ambulante Pflege" - subline: "VeruA ** Verwaltung & Abrechnung" - content: "**VeruA ** Verwaltung** & Abrechnung ist ein Werkzeug für Klientenmanagement, Planung, Dokumentation, Abrechnung und Statistik im Bereich ambulante Pflege.

Die für den ambulanten Einsatz optimierten Funktionen gewährleisten einen ökonomischen Einsatz aller unternehmerischen Ressourcen – sowohl für Spitex-Organisationen als auch für freiberufliche Pflegefachpersonen.

Die als Webseite angelegte Programmoberfläche macht die Bedienung besonders einfach und intuitiv." +Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s. -features: - - headline: "Headline" - subline: "subline" - icon: "user" - content: "Vom stillen welt wohl euch froher weiten um. Mein bringt gezeigt es irrt. Mich irren zerstoben mein tage lebt und." -# TODO Get rid of this stuff -# features: -# - title: "What's Included in Hugoplate" -# image: "/images/service-1.png" -# content: "Hugoplate is a comprehensive starter template that includes everything you need to get started with your Hugo project. What's Included in Hugoplate" -# bulletpoints: -# - "10+ Pre-build pages" -# - "95+ Google Pagespeed Score" -# - "Build with Hugo and TailwindCSS for easy and customizable styling" -# - "Fully responsive on all devices" -# - "SEO-optimized for better search engine rankings" -# - "**Open-source and free** for personal and commercial use" -# button: -# enable: false -# label: "Get Started Now" -# link: "#" -# - title: "Discover the Key Features Of Hugo" -# image: "/images/service-2.png" -# content: "Hugo is an all-in-one web framework for building fast, content-focused websites. It offers a range of exciting features for developers and website creators. Some of the key features are:" -# bulletpoints: -# - "Zero JS, by default: No JavaScript runtime overhead to slow you down." -# - "Customizable: Tailwind, MDX, and 100+ other integrations to choose from." -# - "UI-agnostic: Supports React, Preact, Svelte, Vue, Solid, Lit and more." -# button: -# enable: true -# label: "Get Started Now" -# link: "https://github.com/zeon-studio/hugoplate" +..column.. + +#### Title 2 + +Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s + + + +{{% /columns %}} + +..column.. + + +#### Title 2 + +Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s + +..column.. + +{{% columns %}} + +#### Title 1 + +Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s. + + + +..column.. + +#### Title 2 + +Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s + +..column.. + +#### Title 2 + +Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s + + + +{{% /columns %}} + +{{% /columns %}} +{{% /section %}} + -# - title: "The Top Reasons to Choose Hugo for Your Hugo Project" -# image: "/images/service-3.png" -# content: "With Hugo, you can build modern and content-focused websites without sacrificing performance or ease of use." -# bulletpoints: -# - "Instantly load static sites for better user experience and SEO." -# - "Intuitive syntax and support for popular frameworks make learning and using Hugo a breeze." -# - "Use any front-end library or framework, or build custom components, for any project size." -# - "Built on cutting-edge technology to keep your projects up-to-date with the latest web standards." -# button: -# enable: false -# label: "" -# link: "" ---- diff --git a/themes/hugoplate/layouts/_default/baseof.html b/themes/hugoplate/layouts/_default/baseof.html index 135bbb2..64e54a7 100755 --- a/themes/hugoplate/layouts/_default/baseof.html +++ b/themes/hugoplate/layouts/_default/baseof.html @@ -26,6 +26,7 @@ {{ partial "components/tw-size-indicator.html" . }} + {{ partial "testPartial" . }} {{ end }} diff --git a/themes/hugoplate/layouts/index.html b/themes/hugoplate/layouts/index.html index 6ad77d2..713f6e4 100755 --- a/themes/hugoplate/layouts/index.html +++ b/themes/hugoplate/layouts/index.html @@ -1,5 +1,6 @@ {{/* Home Template File */}} {{ define "main" }} +{{ .Content }}
@@ -55,7 +56,7 @@
{{ range $i, $e:= .Params.keyfeatures }} -
+
{{/*
*/}} {{ with .icon }} @@ -74,15 +75,35 @@
-{{ with .Params.featureslead }} +
+ + +
+ {{ with .Params.featureslead }}
- {{ partial "components/IconHeaderSubheaderText" (dict "icon" .icon "headline" .headline "subline" .subline "text" .content) }} + {{ partial "components/iconheadersubheadertext" . }}
-{{ end }} + {{ end }} +
+ + +
+ {{ range $i, $e:= .Params.features }} + +
+ {{ partial "components/iconheadersubheadertext" . }} +
+ + {{ end }} + +
+ +
+ {{ with site.GetPage "sections/testimonial" }} diff --git a/themes/hugoplate/layouts/partials/components/IconHeaderSubheaderText.html b/themes/hugoplate/layouts/partials/components/IconHeaderSubheaderText.html deleted file mode 100644 index 2120818..0000000 --- a/themes/hugoplate/layouts/partials/components/IconHeaderSubheaderText.html +++ /dev/null @@ -1,18 +0,0 @@ -{{ define "IconHeaderSubheaderText" }} -
- {{ with .icon }} - - {{ end }} -
- {{ with .headline }} -

{{ . }}

- {{ end }} - {{ with .subline }} -

{{ . }}

- {{ end }} - {{ with .text }} -

{{ . }}

- {{ end }} -
-
-{{ end }} \ No newline at end of file diff --git a/themes/hugoplate/layouts/partials/components/iconheadersubheadertext.html b/themes/hugoplate/layouts/partials/components/iconheadersubheadertext.html new file mode 100644 index 0000000..41eeb26 --- /dev/null +++ b/themes/hugoplate/layouts/partials/components/iconheadersubheadertext.html @@ -0,0 +1,14 @@ +
+ {{ with .icon }} + + {{ end }} + {{ with .subline }} +

{{ . }}

+ {{ end }} + {{ if .headline }} +

{{ .headline }}

+ {{ end }} + {{ with .content | markdownify }} +

{{ . }}

+ {{ end }} +
diff --git a/themes/hugoplate/layouts/partials/testPartial.html b/themes/hugoplate/layouts/partials/testPartial.html new file mode 100644 index 0000000..7839993 --- /dev/null +++ b/themes/hugoplate/layouts/partials/testPartial.html @@ -0,0 +1,3 @@ +{{ define "testPartial" }} +

Dies ist ein Test-Partial.

+{{ end }} \ No newline at end of file diff --git a/themes/hugoplate/layouts/shortcodes/columns.html b/themes/hugoplate/layouts/shortcodes/columns.html new file mode 100644 index 0000000..5d426d4 --- /dev/null +++ b/themes/hugoplate/layouts/shortcodes/columns.html @@ -0,0 +1,7 @@ +
+{{ range split .Inner "..column.." }} +{{ printf "
"| safeHTML }} +{{ . | safeHTML }} +{{ printf "
" | safeHTML }} +{{ end }} +
\ No newline at end of file diff --git a/themes/hugoplate/layouts/shortcodes/section.html b/themes/hugoplate/layouts/shortcodes/section.html new file mode 100644 index 0000000..aa8d930 --- /dev/null +++ b/themes/hugoplate/layouts/shortcodes/section.html @@ -0,0 +1,4 @@ +
+{{ .Inner }} +
+ \ No newline at end of file diff --git a/themes/hugoplate/layouts/shortcodes/slider.html b/themes/hugoplate/layouts/shortcodes/slider.html new file mode 100644 index 0000000..e69de29