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..2a3a6a2 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 public/{robots.txt,sitemap.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 @@ Home - Hadeed Ahmad -

I am Hadeed Ahmad, a student at LUMS.

- Profile Picture -

Check out my Forgejo.

+ {% block content %} {% endblock %} diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..401182c --- /dev/null +++ b/templates/index.html @@ -0,0 +1,9 @@ +{% extends "base.html" %} + +{% block content %} +

+

I am Hadeed Ahmad.

+ Profile Picture +

Check out my Forgejo.

+ +{% endblock %}