calendar and small layout fix

This commit is contained in:
2020-12-11 22:20:51 +00:00
parent 8135d87f71
commit 12fc63dc60
5 changed files with 42 additions and 3 deletions

View File

@@ -32,6 +32,9 @@ def index(request):
return render(request, 'posts/index.html', {"posts": posts, "tags_list": t})
def calendar(request):
events=deque(Post.objects.get_visible_articles().order_by('-public_date'))
return render(request, 'posts/fet_calendar.ics', {"events": events})
def tags(request, tag=""):
posts = deque(Post.objects.get_visible_articles().filter(tags__name=tag))