Compare commits

..

10 commits

Author SHA1 Message Date
Renovate Bot e91206ae22 Update actions/upload-artifact action to v4
Some checks failed
Build and Deploy Website / Build Website (push) Has been skipped
Build and Deploy Website / Deploy Website (push) Has been skipped
Build and Deploy Website / Build Dev Website (push) Failing after 41s
Build and Deploy Website / Deploy Dev Website (push) Has been skipped
2024-04-01 14:00:41 +00:00
Samuel Philipp 58e61918f2 updated build-deploy.yml
All checks were successful
Build and Deploy Website / Build Website (push) Has been skipped
Build and Deploy Website / Deploy Website (push) Has been skipped
Build and Deploy Website / Build Dev Website (push) Successful in 35s
Build and Deploy Website / Deploy Dev Website (push) Successful in 9s
2024-04-01 15:58:35 +02:00
Samuel Philipp fd4e4a601c Merge remote-tracking branch 'origin/main' into develop
Some checks failed
Build and Deploy Website / Deploy Dev Website (push) Blocked by required conditions
Build and Deploy Website / Deploy Website (push) Has been skipped
Build and Deploy Website / Build Website (push) Has been cancelled
# Conflicts:
#	src/_data/donations.json
2024-04-01 15:57:17 +02:00
Samuel Philipp 1c3ac4dfab fixed some mistakes
All checks were successful
Build and Deploy Website / Deploy Website (push) Has been skipped
Build and Deploy Website / Build Website (push) Successful in 53s
Build and Deploy Website / Deploy Dev Website (push) Successful in 10s
2024-04-01 15:52:21 +02:00
Samuel Philipp 3a695ce865 fixed live index
All checks were successful
Build and Deploy Website / Deploy Website (push) Has been skipped
Build and Deploy Website / Build Website (push) Successful in 56s
Build and Deploy Website / Deploy Dev Website (push) Successful in 10s
2024-04-01 15:45:58 +02:00
Samuel Philipp 2afb45db6e updated dev build
All checks were successful
Build and Deploy Website / Deploy Website (push) Has been skipped
Build and Deploy Website / Build Website (push) Successful in 49s
Build and Deploy Website / Deploy Dev Website (push) Successful in 9s
2024-04-01 15:18:37 +02:00
Samuel Philipp a915cee61c added dev build and root index symlink
All checks were successful
Build and Deploy Website / Deploy Website (push) Has been skipped
Build and Deploy Website / Build Website (push) Successful in 39s
Build and Deploy Website / Deploy Dev Website (push) Successful in 10s
2024-04-01 15:13:16 +02:00
Samuel Philipp 70245936c7 Merge pull request 'updated donations' (#213) from hotfix into main
All checks were successful
Build and Deploy Website / Build Website (push) Successful in 55s
Build and Deploy Website / Deploy Dev Website (push) Has been skipped
Build and Deploy Website / Deploy Website (push) Successful in 10s
Reviewed-on: #213
2024-01-24 01:10:36 +00:00
Samuel Philipp 5f2e807937 updated donations
All checks were successful
Build and Deploy Website / Build Website (push) Successful in 50s
Build and Deploy Website / Deploy Dev Website (push) Has been skipped
Build and Deploy Website / Deploy Website (push) Has been skipped
2024-01-24 02:07:38 +01:00
Samuel Philipp 8fd3842533 Merge pull request 'updated donations' (#209) from hotfix into main
All checks were successful
Build and Deploy Website / Build Website (push) Successful in 1m8s
Build and Deploy Website / Deploy Dev Website (push) Has been skipped
Build and Deploy Website / Deploy Website (push) Successful in 11s
Reviewed-on: #209
2023-12-28 00:37:08 +00:00
11 changed files with 45 additions and 18 deletions

View file

@ -3,11 +3,28 @@ name: Build and Deploy Website
on: [push]
jobs:
build-dev:
name: Build Dev Website
runs-on: docker
container:
image: node:lts
if: github.ref != 'refs/heads/main'
steps:
- uses: actions/checkout@v4
- name: Install Dependencies
run: npm install
- name: Build Website
run: npm run build:dev
- uses: actions/upload-artifact@v4
with:
name: build
path: dist/
build:
name: Build Website
runs-on: docker
container:
image: node:lts
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
- name: Install Dependencies
@ -23,7 +40,7 @@ jobs:
runs-on: docker
container:
image: node:lts-alpine
needs: [build]
needs: [build-dev]
if: github.ref == 'refs/heads/develop'
steps:
- uses: actions/download-artifact@v3

View file

@ -1,7 +1,5 @@
# sp-codes.de
[![Build Status](https://ci.sp-codes.de/api/badges/samuel-p/sp-codes.de/status.svg?branch=main)](https://ci.sp-codes.de/samuel-p/sp-codes.de)
Website for [sp-codes.de](https://sp-codes.de)
## Additional Header Parameters

View file

@ -4,9 +4,10 @@
"description": "website for sp-codes.de",
"scripts": {
"minify-css": "uncss -n -H dist/ -o dist/css/main-*.css dist/**/*.html dist/**/**/*.html dist/**/**/**/*.html dist/**/**/**/**/*.html dist/**/**/**/**/**/*.html",
"add-index": "cpx dist/de/index.html dist/ && replace-in-file sp-codes.de/de/ sp-codes.de/ dist/index.html",
"start": "eleventy --serve --watch",
"build": "eleventy && npm run move-index && npm run minify-css",
"move-index": "cpx dist/de/index.html dist/"
"build": "eleventy && npm run minify-css && npm run add-index",
"build:dev": "BUILD=dev eleventy && npm run minify-css && npm run add-index"
},
"author": "samuel-p",
"repository": {
@ -29,6 +30,7 @@
"glob": "^10.3.12",
"minify": "^11.1.1",
"postcss": "^8.4.38",
"replace-in-file": "^7.1.0",
"sass": "^1.72.0",
"uncss": "^0.17.3"
},

View file

@ -0,0 +1,4 @@
{
"title": "DEV sp-codes",
"url": "https://dev.sp-codes.de"
}

View file

@ -1,3 +1,10 @@
const fs = require("fs");
const site = require("./global.json");
site.buildTime = new Date();
site.buildName = process.env.BUILD || 'prod';
if (fs.existsSync(`${__dirname}/global.${site.buildName}.json`)) {
Object.assign(site, require(`./global.${site.buildName}.json`));
}
site.buildTime = new Date().toISOString();
module.exports = site;

View file

@ -23,12 +23,12 @@
<meta property="og:title" content="{{ site.title }} - {{ title }}">
<meta property="og:description" content="{{ summary }}">
<meta property="og:site_name" content="{{ site.title }} - {{ title }}">
<meta property="og:image" content="https://sp-codes.de/img/og.png">
<meta property="og:image" content="{{ site.url }}/img/og.png">
<meta property="og:updated_time" content="{{ site.buildTime }}">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="{{ site.title }} - {{ title }}">
<meta name="twitter:description" content="{{ summary }}">
<meta name="twitter:image" content="https://sp-codes.de/img/og.png">
<meta name="twitter:image" content="{{ site.url }}/img/og.png">
<link rel="shortcut icon" href="favicon.ico">
<link rel="icon" type="image/png" href="favicon.png">
<link rel="stylesheet" href="{{ '/css/main.css' | rev }}">

View file

@ -12,7 +12,7 @@ eleventyNavigation:
<h1><i class="i-hand-holding-heart"></i> Unterstützen</h1>
<p>Alle öffentlichen Dienste sind kostenfrei nutzbar. Wenn du dich trotzdem an den Kosten für die Server-Infrastruktur
beteiligen oder mir eine kleine Anerkennung lassen willst, kannst du mich über die
beteiligen oder mir eine kleine Anerkennung zukommen lassen willst, kannst du mich über die
folgenden Wege unterstützen<sup>1</sup>:</p>
<div class="row justify-content-center mb-5">

View file

@ -15,14 +15,14 @@ summary: Impressum von sp-codes Informationen zu Rechtsinhaber und Kontaktan
<h2>Kontakt</h2>
<p>
<strong>E-Mail-Adresse:</strong> mail@sp-codes.de<br>
<strong>Weitere Kontaktmöglichkeiten:</strong> <a href="/{{locale}}/contact">https://sp-codes.de/{{locale}}/contact</a><br>
<strong>Weitere Kontaktmöglichkeiten:</strong> <a href="/{{locale}}/contact">{{ site.url }}/{{locale}}/contact</a><br>
</p>
</div>
<div class="mb-3 pt-4 border-top">
<h2>Domains</h2>
<ul>
<li><a href="https://samuel-philipp.de">samuel-philipp.de</a></li>
<li><a href="https://sp-codes.de">sp-codes.de</a></li>
<li><a href="{{ site.url }}">sp-codes.de</a></li>
<li><a href="https://sp-magic.de">sp-magic.de</a></li>
</ul>
</div>

View file

@ -14,8 +14,8 @@ summary: Datenschutzerklärung von sp-codes Informationen zur Datenverarbeit
<p>
<strong>E-Mail-Adresse:</strong> mail@sp-codes.de<br>
<strong>Kontaktmöglichkeiten:</strong> <a
href="/{{locale}}/contact">https://sp-codes.de/{{locale}}/contact</a><br>
<strong>Impressum:</strong> <a href="/{{locale}}/imprint">https://sp-codes.de/{{locale}}/imprint</a>
href="/{{locale}}/contact">{{ site.url }}/{{locale}}/contact</a><br>
<strong>Impressum:</strong> <a href="/{{locale}}/imprint">{{ site.url }}/{{locale}}/imprint</a>
</p>
</div>
<div class="mb-3">

View file

@ -12,14 +12,13 @@ eleventyNavigation:
<h1><i class="i-hand-holding-heart"></i> Donate</h1>
<p>All public services can be used for free. If you still want to contribute to the costs for server infrastructure or
send me a small donation for my blog, you can support me in the following ways<sup>1</sup>:</p>
send me a small donation, you can support me in the following ways<sup>1</sup>:</p>
<div class="row justify-content-center">
<div class="col-12 col-md-10 col-lg-8">
<div class="card mb-3">
<h2><i class="i-comments m-2"></i>Recommend</h2>
<div>You are welcome to recommend my services and my blog posts. I am very glad if I can make you happy with
it.
<div>You are welcome to recommend my services. I am very glad if I can make you happy with it.
</div>
</div>
<div class="card mb-3">

View file

@ -15,14 +15,14 @@ summary: Imprint of sp-codes - Information on legal owner and contact details.
<h2>Contact</h2>
<p>
<strong>E-Mail-Address:</strong> mail@sp-codes.de<br>
<strong>More contact options:</strong> <a href="/{{locale}}/contact">https://sp-codes.de/{{locale}}/contact</a><br>
<strong>More contact options:</strong> <a href="/{{locale}}/contact">{{ site.url }}/{{locale}}/contact</a><br>
</p>
</div>
<div class="mb-3 pt-4 border-top">
<h2>Domains</h2>
<ul>
<li><a href="https://samuel-philipp.de">samuel-philipp.de</a></li>
<li><a href="https://sp-codes.de">sp-codes.de</a></li>
<li><a href="{{ site.url }}">sp-codes.de</a></li>
<li><a href="https://sp-magic.de">sp-magic.de</a></li>
</ul>
</div>