Initial commit

This commit is contained in:
2025-10-07 12:58:31 +01:00
commit af38770285
10 changed files with 132 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
<!DOCTYPE html>
<html>
<body>
<header>
{% include 'partials/site-wide-header.html' %}
</header>
<h1>{{page_title}}</h1>
<form action='/submit-edit' method='POST'>
<input type='hidden' name='page' value='{{page_title}}'>
<label>Username:</label><br/>
<input type='text' name='username'><br/>
<label>Password:</label><br/>
<input type='password' name='password'><br/>
<label>Content:</label><br/>
<textarea name='content'>{{content}}</textarea><br/>
<input type='submit'>
</form>
<footer>
{% include 'partials/site-wide-footer.html' %}
</footer>
</body>
</html>

13
templates/index.html Normal file
View File

@@ -0,0 +1,13 @@
<html>
<body>
<header>
{% include 'partials/site-wide-header.html' %}
</header>
Welcome to My Wiki Site!<br/>
Pages:<br/>
{{pages|safe}}
<footer>
{% include 'partials/site-wide-footer.html' %}
</footer>
</body>
</html>

View File

@@ -0,0 +1,2 @@
<hr/>
Powered by deadwiki

View File

@@ -0,0 +1,2 @@
<a href='/'>Home Page</a>
<hr/>

13
templates/wiki-page.html Normal file
View File

@@ -0,0 +1,13 @@
<html>
<body>
<header>
{% include 'partials/site-wide-header.html' %}
</header>
<h1>{{page_title}}</h1>
{{content|safe}}<br/>
<a href='/edit/{{page_title}}'>Edit Page</a>
<footer>
{% include 'partials/site-wide-footer.html' %}
</footer>
</body>
</html>