Dieses Bundle erweitert Contao um eine Next/Prev-Navigation (Vorherige/Nächste Seite) als Frontend Modul, bei der Seitenbilder (Page Image) mit ausgegeben werden können. Unterstützt Contao 4.13 und Contao 5.x (Twig-Templates).
Next/Prev-Navigation für Seiten
Ausgabe von Titel und Seitenbild
Fallback-Handling (z. B. wenn kein Seitenbild gesetzt ist)
Custom CSS-Klassen / Wrapper-Struktur für flexibles Styling
{
"type": "module",
"scripts": {
"js": "bun run _scripts/js.mjs",
"scss:prod": "sass files_resources/scss/app.scss --style=compressed | postcss --config postcss.config.cjs -o files/assets/css/app.min.css",
"scss": "sass files_resources/scss/app.scss files/assets/css/app.min.css --style=compressed --source-map",
"scss:be": "sass files_resources/scss/be.contao.scss assets/css/be.contao.css --style=compressed --source-map",
"scss:be:prod": "sass files_resources/scss/be.contao.scss --style=compressed | postcss --config postcss.config.cjs -o assets/css/be.contao.css",
"postcss": "postcss files/assets/css/app.min.css --use autoprefixer cssnano postcss-import @tailwindcss/postcss -o files/assets/css/app.min.css",
"svg:copy": "cpy 'files_resources/svg/**/*.{svg,SVG}' '!files_resources/svg/brands/**/*.{svg,SVG}' '!files_resources/svg/technique/**/*.{svg,SVG}' files/assets/svg",
"svg:modify": "bun run _scripts/modify-svg.mjs",
"img:copy": "cpy 'files_resources/img/**/*.{png,jpg,jpeg,gif,ico}' files/assets/img",
"fonts:copy": "cpy 'files_resources/fonts/**/*' 'node_modules/@fortawesome/fontawesome-free/webfonts/*' files/assets/fonts",
"build": "bun run js && bun run scss && bun run postcss && bun run svg:copy && bun run svg:modify && bun run img:copy && bun run fonts:copy && bun run scss:be",
"watch": "chokidar 'files_resources/**/*.{scss,js}' -c 'bun run build'"
}
}
# This job runs in the deploy stage.deploy-job:image:$IMAGE_DEPLOY_ONLYstage:deploy# It only runs when *both* jobs in the test stage complete successfully.environment:name:productiononly:-main# nur in main branch ausführen!# variables:# GIT_STRATEGY: none # Git-Checkout für diese Stage verhindern, [none,fetch,clone]before_script:-mkdir-p~/.ssh-echo$SSH_PRIVATE_KEY_AS_BASE_64|base64-d>~/.ssh/$FILENAME_SSH-chmod600~/.ssh/$FILENAME_SSH-eval$(ssh-agent-s)-ssh-add~/.ssh/$FILENAME_SSH# Erstelle die SSH Konfigurationsdatei#ServerAliveInterval 60\n ServerAliveCountMax 2\n ExitOnForwardFailure yes#ServerAliveInterval 60 → Sendet jede 60 Sekunden ein Keep-Alive-Signal.#ServerAliveCountMax 2 → Trennt die Verbindung, wenn 2 Keep-Alive-Signale ausbleiben.#ExitOnForwardFailure yes → Verhindert das Offenlassen von hängenden SSH-Verbindungen.-echo-e"Host $SSH_CONFIG_HOST\nHostName $SSH_CONFIG_HOSTNAME\nUser $SSH_CONFIG_USER\nPort $SSH_CONFIG_PORT\nIdentityFile ~/.ssh/$FILENAME_SSH\nIdentitiesOnly yes\nStrictHostKeyChecking no\nServerAliveInterval 60\nServerAliveCountMax 2\nExitOnForwardFailure yes">~/.ssh/config-chmod644~/.ssh/config# Verhindert SSH-Warnungen-echo$SSH_CONFIG_HOSTNAME$SSH_CONFIG_HOST>>/etc/hosts-cat/etc/hosts-echo$SSH_CONFIG_HOST-ssh-keyscan$SSH_CONFIG_HOST>~/.ssh/known_hosts-chmod644~/.ssh/known_hosts-cat~/.ssh/known_hosts#Erstelle unter _dep/from_gitlab_to_live eine neue .deploy.env Datei-echo"PHP_VERSION=$PHP_VERSION">./_dep/from_gitlab_to_live/.deploy.env-echo"PHP_CMD=/usr/bin/php$PHP_VERSION">>./_dep/from_gitlab_to_live/.deploy.env# Achtung WEB_PATH_LOCAL wird zusammengesetzt-echo"WEB_PATH_LOCAL=/builds/$CI_PROJECT_PATH/">>./_dep/from_gitlab_to_live/.deploy.env-echo"WEB_PATH_REMOTE=$DEPLOYER_WEB_PATH_REMOTE">>./_dep/from_gitlab_to_live/.deploy.env-echo"CHOWN_USER=$DEPLOYER_CHOWN_USER">>./_dep/from_gitlab_to_live/.deploy.env-echo"CHOWN_GROUP=$DEPLOYER_CHOWN_GROUP">>./_dep/from_gitlab_to_live/.deploy.env-echo"HOST_SSH_CONFIG=$SSH_CONFIG_HOST">>./_dep/from_gitlab_to_live/.deploy.env-echo"RSYNC_FILTER_FILE=$DEPLOYER_RSYNC_FILTER_FILE">>./_dep/from_gitlab_to_live/.deploy.env-echo"RSYNC_FILTER_FOR_BUILD_FILE=$DEPLOYER_RSYNC_FILTER_FOR_BUILD_FILE">>./_dep/from_gitlab_to_live/.deploy.env