From 4f6224ffb989cc8796157a4900ad4a47768ed73d Mon Sep 17 00:00:00 2001 From: ANIRUDH <149250431+ANIRUDHNARANG0@users.noreply.github.com> Date: Fri, 12 Jul 2024 02:22:48 +0530 Subject: [PATCH] made initial blog change --- %USERPROFILE%/.pyenv | 1 + templates/blog/home.html | 103 ++++++++++++++++++++++++++++++++++++++- 2 files changed, 103 insertions(+), 1 deletion(-) create mode 160000 %USERPROFILE%/.pyenv diff --git a/%USERPROFILE%/.pyenv b/%USERPROFILE%/.pyenv new file mode 160000 index 00000000..0e5f7f10 --- /dev/null +++ b/%USERPROFILE%/.pyenv @@ -0,0 +1 @@ +Subproject commit 0e5f7f10dd6933f86343a799c3d91e8dc0f1cbd2 diff --git a/templates/blog/home.html b/templates/blog/home.html index 85251740..2d040437 100644 --- a/templates/blog/home.html +++ b/templates/blog/home.html @@ -1 +1,102 @@ -Lets get started ! \ No newline at end of file +{% extends 'globals/base.html' %} +{% load static %} + +{% block title %} +Blogs +{% endblock %} + +{% block css %} + + + + +{% endblock %} + +{% block body %} +{% include 'globals/navbar.html' %} + +
Author: {{ blog.author.username }}
+Tags: + {% for tag in blog.tags %} + {{ tag }} + {% if not forloop.last %}, {% endif %} + {% endfor %} +
+Date Added: {{ blog.date_added }}
+Type: {% if blog.blog_type == 'S' %} Self-authored {% else %} Campaign: {{ blog.campaign.name }} {% endif %}
+ View +No blogs found.
+