diff --git a/.gitignore b/.gitignore index 5197c87..364fdec 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -.vite/ +public/ diff --git a/.woodpecker.yaml b/.woodpecker.yaml index c4624b3..31f771f 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -1,11 +1,18 @@ steps: + build: + image: alpine:edge + commands: + - apk add --no-cache zola + - zola build + - rm build/robots.txt sitemal.xml + deploy: image: alpine:latest name: Zip files commands: - apk add --no-cache zip curl + - cd public - zip -r project.zip . -x ".*" - - 'AUTH_HEADER="Authorization: Bearer $PAGES_API_KEY"' - API_URL=https://pages.hadeedahmad.com/pages/me - curl -s -w "%{http_code}" -F "zipfile=@project.zip" -H "$AUTH_HEADER" "$API_URL" | grep -q 200 diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..c93d803 --- /dev/null +++ b/config.toml @@ -0,0 +1 @@ +base_url = "https://hadeedahmad.com" diff --git a/profile.png b/static/profile.png similarity index 100% rename from profile.png rename to static/profile.png diff --git a/index.html b/templates/base.html similarity index 54% rename from index.html rename to templates/base.html index 2683280..4c7bf2e 100644 --- a/index.html +++ b/templates/base.html @@ -6,8 +6,6 @@
Check out my Forgejo.
+ {% block content %} {% endblock %}