Skip to content
This repository was archived by the owner on Oct 29, 2022. It is now read-only.

Commit 0e06dce

Browse files
committed
add templates
1 parent 1a6bbb1 commit 0e06dce

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
title: Weekly Community News - {{date}}
3+
date: {{date}}
4+
tags: {{tags}}
5+
---
6+
7+
{% for issue in issues %}
8+
# {{issue.title}}
9+
10+
<small>Submitted by: [{{issue.user.login}}]({{issue.user.url}}) on {{issue.created_at}}</small>
11+
12+
{{issue.body}}
13+
14+
{% endfor %}

app/templates/new_post.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{% {% extends 'base.html' %}%}
2+
{% block content %}
3+
{% for topic in topics %}
4+
<div>
5+
<h1>{{ topic.title }}</h1>
6+
<small>submitted by:{{topic.user}}</small>
7+
<small>on: {{topic.date}}</small>
8+
<small>tags: {{topic.tags}}</small>
9+
</div>
10+
<div>
11+
<p>{{ topic.body }}</p>
12+
</div>
13+
{% endfor %}
14+
{% endblock %}
15+
"""
16+
{% endblock %}

0 commit comments

Comments
 (0)