1
Fork 0

Try zola
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Hadeed 2024-11-25 19:39:14 +05:00
parent 34ba3f2695
commit 5de62c339b
6 changed files with 20 additions and 5 deletions

2
.gitignore vendored
View file

@ -1 +1 @@
.vite/ public/

View file

@ -1,11 +1,18 @@
steps: steps:
build:
image: alpine:edge
commands:
- apk add --no-cache zola
- zola build
- rm public/{robots.txt,sitemap.xml}
deploy: deploy:
image: alpine:latest image: alpine:latest
name: Zip files name: Zip files
commands: commands:
- apk add --no-cache zip curl - apk add --no-cache zip curl
- cd public
- zip -r project.zip . -x ".*" - zip -r project.zip . -x ".*"
- 'AUTH_HEADER="Authorization: Bearer $PAGES_API_KEY"' - 'AUTH_HEADER="Authorization: Bearer $PAGES_API_KEY"'
- API_URL=https://pages.hadeedahmad.com/pages/me - 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 - curl -s -w "%{http_code}" -F "zipfile=@project.zip" -H "$AUTH_HEADER" "$API_URL" | grep -q 200

1
config.toml Normal file
View file

@ -0,0 +1 @@
base_url = "https://hadeedahmad.com"

View file

Before

Width:  |  Height:  |  Size: 122 KiB

After

Width:  |  Height:  |  Size: 122 KiB

View file

@ -6,8 +6,6 @@
<title>Home - Hadeed Ahmad</title> <title>Home - Hadeed Ahmad</title>
</head> </head>
<body> <body>
<h1>I am Hadeed Ahmad, a student at LUMS.</h1> {% block content %} {% endblock %}
<img src="profile.png" alt="Profile Picture" width="150" />
<p>Check out my <a href="https://git.hadeedahmad.com">Forgejo</a>.</p>
</body> </body>
</html> </html>

9
templates/index.html Normal file
View file

@ -0,0 +1,9 @@
{% extends "base.html" %}
{% block content %}
<h1>
<h1>I am Hadeed Ahmad.</h1>
<img src="profile.png" alt="Profile Picture" width="150" />
<p>Check out my <a href="https://git.hadeedahmad.com">Forgejo</a>.</p>
</h1>
{% endblock %}