This commit is contained in:
parent
34ba3f2695
commit
5de62c339b
6 changed files with 20 additions and 5 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1 +1 @@
|
|||
.vite/
|
||||
public/
|
||||
|
|
|
@ -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
|
||||
|
|
1
config.toml
Normal file
1
config.toml
Normal file
|
@ -0,0 +1 @@
|
|||
base_url = "https://hadeedahmad.com"
|
Before Width: | Height: | Size: 122 KiB After Width: | Height: | Size: 122 KiB |
|
@ -6,8 +6,6 @@
|
|||
<title>Home - Hadeed Ahmad</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>I am Hadeed Ahmad, a student at LUMS.</h1>
|
||||
<img src="profile.png" alt="Profile Picture" width="150" />
|
||||
<p>Check out my <a href="https://git.hadeedahmad.com">Forgejo</a>.</p>
|
||||
{% block content %} {% endblock %}
|
||||
</body>
|
||||
</html>
|
9
templates/index.html
Normal file
9
templates/index.html
Normal 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 %}
|
Loading…
Reference in a new issue