Browse Source
I made the Home handler generate a list of all blog posts, so it's effectively a complete blog. Not too bad for 2 hours of work!master

4 changed files with 27 additions and 5 deletions
@ -1,9 +1,9 @@ |
|||
<html> |
|||
<head> |
|||
<title>{{ title }}</title> |
|||
<link rel="stylesheet" type="text/css" href="webResources/styles.css"> |
|||
<link rel="stylesheet" type="text/css" href="/webResources/styles.css"> |
|||
</head> |
|||
<body> |
|||
{{ postBody }} |
|||
{% raw postBody %} |
|||
</body> |
|||
</html> |
|||
|
@ -0,0 +1,11 @@ |
|||
<html> |
|||
<head> |
|||
<title>Home</title> |
|||
<link rel="stylesheet" type="text/css" href="/webResources/styles.css"> |
|||
</head> |
|||
<body> |
|||
{% for post in allPosts %} |
|||
<a href="blog/{{post}}">{{post}}</a> |
|||
{% end %} |
|||
</body> |
|||
</html> |
Loading…
Reference in new issue