commit 1c26f9e7ba159cdff3d6039adabe650078f96be4 Author: Christian Weimann Date: Sat Jan 13 22:17:06 2024 +0100 first commit diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..fbb49d5 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,30 @@ +--- +kind: pipeline +name: build + +steps: + - name: submodules + image: alpine/git + commands: + - git submodule update --init --recursive --remote + + - name: hugo + image: hugomods/hugo:latest + pull: always + commands: + - echo "Checking Hugo version." + - hugo version + - cd /drone/src + - hugo + - ls -al /drone/src/public + + - name: docker + # See docs at https://plugins.drone.io/plugins/docker + image: plugins/docker + settings: + username: + from_secret: gitea_username + password: + from_secret: gitea_password + repo: git.qx9.de/christian/christian-weimann.de + registry: git.qx9.de \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5a130d9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +/public/ +/resources/_gen/ +/assets/jsconfig.json +hugo.log +hugo_stats.json +.hugo_build.lock +hugo.exe +hugo.darwin +hugo.linux diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..d9c86a8 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "themes/hugo-theme-console"] + path = themes/hugo-theme-console + url = https://git.qx9.de/christian/hugo-theme-console.git diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..70d5f29 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,2 @@ +FROM nginx:alpine +COPY --chown=nginx:nginx public /usr/share/nginx/html \ No newline at end of file diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..c6f3fce --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,5 @@ ++++ +title = '{{ replace .File.ContentBaseName "-" " " | title }}' +date = {{ .Date }} +draft = true ++++ diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..cfa46bd --- /dev/null +++ b/config.toml @@ -0,0 +1,24 @@ +baseurl = "https://example.com/" +title = "christian-weimann.de" +theme = "hugo-theme-console" +languageCode = "de-de" + +[params] + # Cutting off the page title to two chars for mobile (console-demo -> co) + titleCutting = true + + # Set the animation style -- https://animate.style/ + # To disable animations, please remove or comment animationStyle parameter + animateStyle = "animated zoomIn fast" + + [[params.navlinks]] + name = "about/" + url = "about/" + + [[params.navlinks]] + name = "posts/" + url = "posts/" + + [[params.navlinks]] + name = "photos/" + url = "photos/" diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..cd3953f --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,16 @@ +version: "3.3" + +services: + qx9de: + image: git.qx9.de/christian/christian-weimann.de:latest + restart: unless-stopped + networks: + - rproxy + labels: + - traefik.enable=true + - traefik.http.routers.qx9de.rule=Host(`christianweimannde.web.qx9.de`,`christian-weimann.de`, `www.christian-weimann.de`) + +networks: + rproxy: + external: + name: rproxy \ No newline at end of file diff --git a/themes/hugo-theme-console b/themes/hugo-theme-console new file mode 160000 index 0000000..b330640 --- /dev/null +++ b/themes/hugo-theme-console @@ -0,0 +1 @@ +Subproject commit b3306403b82a9ab9b37f2c8c67badbc118194077