Feat: deploy dev
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Dorian Zedler 2022-08-05 14:47:21 +02:00
parent 384c0a6f36
commit ea9bb8fd5a
Signed by: dorian
GPG key ID: 989DE36109AFA354
5 changed files with 48 additions and 4 deletions

View file

@ -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
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

View file

@ -1,5 +1,6 @@
{
"recommendations": [
"valentjn.vscode-ltex"
"valentjn.vscode-ltex",
"budparr.language-hugo-vscode"
]
}

14
config.dev.toml Normal file
View file

@ -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

View file

@ -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@@"

View file

@ -4,7 +4,7 @@
{{ if isset $data . }}
{{ $data = index $data . }}
{{ range $data }}
{{ if .modularLayout }}
{{ if and .modularLayout (not .disabled) }}
{{ $filteredData = ($filteredData | append .) }}
{{ end }}
{{ end }}