diff --git a/.drone.yml b/.drone.yml index 8851123..1db59d1 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,5 +1,6 @@ +--- kind: pipeline -name: default +name: production steps: - name: build @@ -12,4 +13,29 @@ steps: settings: folder: public ssh_key: - from_secret: gitea-ssh-key \ No newline at end of file + from_secret: gitea-ssh-key + +trigger: + branch: + - main +--- +kind: pipeline +name: dev + +steps: +- name: build + image: klakegg/hugo:ext-alpine-ci + commands: + - hugo --config config.dev.toml --minify + +- name: publish + image: itsblue.dev/plugins/codeberg-pages-deploy + settings: + folder: public + git_branch: pages-dev + ssh_key: + from_secret: gitea-ssh-key + +trigger: + branch: + - dev \ No newline at end of file diff --git a/.vscode/extensions.json b/.vscode/extensions.json index f310399..940add1 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,5 +1,6 @@ { "recommendations": [ - "valentjn.vscode-ltex" + "valentjn.vscode-ltex", + "budparr.language-hugo-vscode" ] } \ No newline at end of file diff --git a/config.dev.toml b/config.dev.toml new file mode 100644 index 0000000..9a0c70e --- /dev/null +++ b/config.dev.toml @@ -0,0 +1,14 @@ +baseURL = "https://itsblue-development.itsblue.online/pages-dev" +defaultContentLanguage = "en" +title = "Itsblue" +theme = "quark-hugo" + +[params] + gridSize = "grid-lg" + +[languages] + [languages.de] + [languages.en] + +[markup.goldmark.renderer] + unsafe= true \ No newline at end of file diff --git a/data/en/reader-clock.yaml b/data/en/reader-clock.yaml index 38e7a2f..36ddea5 100644 --- a/data/en/reader-clock.yaml +++ b/data/en/reader-clock.yaml @@ -11,6 +11,7 @@ The Reader-Clock is a digital clock which tells the time by showing a quote from an actual book. 02-highlights: + disabled: true modularLayout: features classes: offset-box smallColumns: false @@ -74,6 +75,7 @@ The Reader-Clock comes a DIY-Kit. It's easy to assemble and only requires some soldering skills. 07-pricing: + disabled: true modularLayout: pricing containerType: panel products: @@ -105,5 +107,6 @@ # Pricing 08-contact: + disabled: true modularLayout: text content: "@@PageContent@@" \ No newline at end of file diff --git a/themes/quark-hugo/layouts/partials/modular/_dataGetter.html b/themes/quark-hugo/layouts/partials/modular/_dataGetter.html index 4faf515..7176f3d 100644 --- a/themes/quark-hugo/layouts/partials/modular/_dataGetter.html +++ b/themes/quark-hugo/layouts/partials/modular/_dataGetter.html @@ -4,7 +4,7 @@ {{ if isset $data . }} {{ $data = index $data . }} {{ range $data }} - {{ if .modularLayout }} + {{ if and .modularLayout (not .disabled) }} {{ $filteredData = ($filteredData | append .) }} {{ end }} {{ end }}