Initial commit
This commit is contained in:
36
templates/post_list.html
Normal file
36
templates/post_list.html
Normal file
@@ -0,0 +1,36 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Akshay Kolli</title>
|
||||
<link rel="icon" href="{{ url_for('static', filename='assets/favicon.ico') }}" type="image/x-icon" >
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}" type="text/css" >
|
||||
|
||||
</head>
|
||||
|
||||
|
||||
<body>
|
||||
|
||||
<header><a href="/posts">Posts</a> <a href="/">Home</a></header>
|
||||
|
||||
<span class="posts">
|
||||
<h1 id="posts-title">Posts</h1>
|
||||
{% if posts|length == 0 %}
|
||||
<h1>Well this is awkward, I swear I had some posts</h1>
|
||||
|
||||
{% endif %}
|
||||
{% for post in posts %}
|
||||
<a class="post_a" href="posts/{{ post.post_id}}">
|
||||
<div id="post_listing" >
|
||||
|
||||
<h1>{{ post.metadata.title }}</h1>
|
||||
<h3>{{ post.metadata.date }}</h3>
|
||||
<h3>{{ post.metadata.description }}</h3>
|
||||
|
||||
</div>
|
||||
</a>
|
||||
{% endfor %}
|
||||
|
||||
</span>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user