This commit is contained in:
parent
34ba3f2695
commit
50c8731834
6 changed files with 20 additions and 5 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1 +1 @@
|
||||||
.vite/
|
public/
|
||||||
|
|
|
@ -1,11 +1,18 @@
|
||||||
steps:
|
steps:
|
||||||
|
build:
|
||||||
|
image: alpine:edge
|
||||||
|
commands:
|
||||||
|
- apk add --no-cache zola
|
||||||
|
- zola build
|
||||||
|
- rm build/robots.txt sitemal.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
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>
|
<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
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