From 50c8731834de1f9428e58312acdb422a30597270 Mon Sep 17 00:00:00 2001 From: Hadeed Ahmad Date: Mon, 25 Nov 2024 19:39:14 +0500 Subject: [PATCH] Try zola --- .gitignore | 2 +- .woodpecker.yaml | 9 ++++++++- config.toml | 1 + profile.png => static/profile.png | Bin index.html => templates/base.html | 4 +--- templates/index.html | 9 +++++++++ 6 files changed, 20 insertions(+), 5 deletions(-) create mode 100644 config.toml rename profile.png => static/profile.png (100%) rename index.html => templates/base.html (54%) create mode 100644 templates/index.html 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 @@ 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 %}