Template files

This commit is contained in:
Joseph Ferano 2025-04-03 23:02:46 +08:00
parent b8cc8eaec6
commit e9bcf2a941
3 changed files with 20 additions and 11 deletions

12
www/home.html Normal file
View File

@ -0,0 +1,12 @@
<html>
<head>
<title>Gitano</title>
</head>
<body>
<ul>
{% for project in projects %}
<li><a href="{{project.name}}/">{{ project.name }}</a></li>
{% endfor %}
</ul>
</body>
</html>

View File

@ -1,11 +0,0 @@
<html>
<head>
<title>Hello!</title>
</head>
<body>
<h1>Hello local server!</h1>
<p>
We just served our own files.
</p>
</body>
</html>

8
www/project.html Normal file
View File

@ -0,0 +1,8 @@
<title> {{ project.name }} </title>
<body>
<ul>
{% for commit in commits %}
<li><a href="{{project.name}}/{{commit.hash}}"> {{ commit.message }} </a></li>
{% endfor %}
</ul>
</body>