From 24d571d165ccc842c6630bf879546b05ee333f15 Mon Sep 17 00:00:00 2001 From: jannisp Date: Wed, 19 Jan 2022 11:10:58 +0100 Subject: [PATCH] First post and basic setup --- .gitignore | 20 ++++++++++++++++++++ .gitmodules | 3 +++ archetypes/default.md | 6 ++++++ config.yaml | 25 +++++++++++++++++++++++++ content/posts/first-post.md | 28 ++++++++++++++++++++++++++++ public/.htaccess | 3 +++ themes/anubis | 1 + 7 files changed, 86 insertions(+) create mode 100644 .gitignore create mode 100644 .gitmodules create mode 100644 archetypes/default.md create mode 100644 config.yaml create mode 100644 content/posts/first-post.md create mode 100644 public/.htaccess create mode 160000 themes/anubis diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2b139d2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,20 @@ +# Created by https://www.toptal.com/developers/gitignore/api/hugo +# Edit at https://www.toptal.com/developers/gitignore?templates=hugo + +### Hugo ### +# Generated files by hugo +/public/[a-z]*.* +/public/*/* +/resources/_gen/ +/assets/jsconfig.json +hugo_stats.json + +# Executable may be added to repository +hugo.exe +hugo.darwin +hugo.linux + +# Temporary lock file while building +/.hugo_build.lock + +# End of https://www.toptal.com/developers/gitignore/api/hugo diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..5a69223 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "themes/anubis"] + path = themes/anubis + url = https://github.com/mitrichius/hugo-theme-anubis.git diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..00e77bd --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,6 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +draft: true +--- + diff --git a/config.yaml b/config.yaml new file mode 100644 index 0000000..beac6bd --- /dev/null +++ b/config.yaml @@ -0,0 +1,25 @@ +baseURL: "https://blog.pflänz.li/" +languageCode: "de-ch" +title: "Pflänz.li Blog" +theme: "anubis" + +menu: + main: + - identifier: blog + name: Blog + title: Blog + url: / + weight: 0 + - identifier: website + name: Website + title: Website + url: "https://beta.pflänz.li" + weight: 0 + +params: + style: auto-with-switcher + author: "thisfro" + email: contact@pflaenz.li + social: + - id: git + name: thisfro/pflaenz.li \ No newline at end of file diff --git a/content/posts/first-post.md b/content/posts/first-post.md new file mode 100644 index 0000000..9cd00ad --- /dev/null +++ b/content/posts/first-post.md @@ -0,0 +1,28 @@ +--- +title: "Die Beta ist live" +date: 2022-01-18T00:00:00+01:00 +draft: false +summary: "Die Beta ist live auf [beta.pflänz.li](https://beta.pflänz.li)!" +--- + +Willkommen auf dem Pflänz.li Blog! + +## Beta +Unter der URL [beta.pflänz.li](https://beta.pflänz.li) ist die Beta nun zugänglich! 🎉 +Um die Funktionen zu testen, sollte man sich am besten registrieren. + +## Funktionen +Die implementierten Funktionen beschränken sich auf das Minimum. Weitere Funktionen sollen jedoch bald folgen. Falls du helfen möchtest, schau mal beim [git-repo](https://git.thisfro.ch/thisfro/pflaenz.li) vorbei. + +--- + +Zurzeit funktionieren: +- Registrierung +- Log in/out +- Angebot erstellen (inkl. Bild-Upload) +- Angebot bearbeiten/löschen +- Tausch anbieten +- User-Passwort ändern +- Angebote nach PLZ filtern + +Bugs und Verbesserungsvorschläge gerne an [@thisfro](mailto:jannis@thisfro.ch) melden oder issue auf [gitea](https://git.thisfro.ch/thisfro/pflaenz.li) öffnen! \ No newline at end of file diff --git a/public/.htaccess b/public/.htaccess new file mode 100644 index 0000000..f28d1b9 --- /dev/null +++ b/public/.htaccess @@ -0,0 +1,3 @@ +RewriteEngine on +RewriteCond %{HTTP:X-Forwarded-Proto} !https +RewriteRule (.*) https://blog.pflänz.li/$1 [R=301,L] \ No newline at end of file diff --git a/themes/anubis b/themes/anubis new file mode 160000 index 0000000..05206ec --- /dev/null +++ b/themes/anubis @@ -0,0 +1 @@ +Subproject commit 05206ec0215fc0f004b5bd7bf225981aed655b3d