diff --git a/blog/__pycache__/urls.cpython-310.pyc b/blog/__pycache__/urls.cpython-310.pyc index 577dcc2..3a2ade3 100644 Binary files a/blog/__pycache__/urls.cpython-310.pyc and b/blog/__pycache__/urls.cpython-310.pyc differ diff --git a/blog/__pycache__/views.cpython-310.pyc b/blog/__pycache__/views.cpython-310.pyc index 5b1f679..132fee1 100644 Binary files a/blog/__pycache__/views.cpython-310.pyc and b/blog/__pycache__/views.cpython-310.pyc differ diff --git a/blog/urls.py b/blog/urls.py index 11d896d..01d324b 100644 --- a/blog/urls.py +++ b/blog/urls.py @@ -3,6 +3,7 @@ from . import views urlpatterns = [ path('', views.home, name='Home'), + path('news/', views.news, name='News'), path('blog/', views.BlogDetailView.as_view(), name='Blog'), path('blog/create/', views.BlogCreateView.as_view(), name='Blog Create'), path('post/', views.PostDetailView.as_view(), name='Post'), diff --git a/blog/views.py b/blog/views.py index 6c9e863..4e5d0e0 100644 --- a/blog/views.py +++ b/blog/views.py @@ -5,14 +5,10 @@ from .models import * # Create your views here. -def home(request): - blogs = { - 'blog': Blog.objects.all() - } - +def news(request): allow_empty = True queryset = None - model = Post + model = Blog paginate_by = None paginate_orphans = 0 context_object_name = 'posts' @@ -75,3 +71,5 @@ class PostCreateView(LoginRequiredMixin, CreateView): def about(request): return render(request, 'blog/about.html', {'title': 'About'}) +def home(request): + return render(request, 'index.html', {'title': 'About'}) \ No newline at end of file diff --git a/templates/blog/blogDetail.html b/templates/blog/blogDetail.html index e28952e..02e7c72 100644 --- a/templates/blog/blogDetail.html +++ b/templates/blog/blogDetail.html @@ -1,4 +1,4 @@ -{% extends 'base2.html' %} +{% extends 'base.html' %} {% block content %} {% load markdown_extras %} diff --git a/templates/blog/blogList.html b/templates/blog/blogList.html index 28f6dbb..f004fc1 100644 --- a/templates/blog/blogList.html +++ b/templates/blog/blogList.html @@ -1,4 +1,4 @@ -{% extends 'base2.html' %} +{% extends 'base.html' %} {% block content %} {% load markdown_extras %} diff --git a/templates/blog/home.html b/templates/blog/home.html index 2f712a1..898bba4 100644 --- a/templates/blog/home.html +++ b/templates/blog/home.html @@ -43,13 +43,6 @@ - {% if user.is_authenticated %} -
- {% csrf_token %} - -
- {% endif %} - diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..728eca3 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,20 @@ +{% extends 'base.html' %} + +{% block content %} + +
+
+

Beyond Heroes

+

+ The project that rose from the ashes of a game that was once. We aim to recreate the experience that we enjoyed throughout the years, while also adding new features that make it truly Beyond Heroes and Generals.
+ Join Us on this journey to relive the old days and experience something new by clicking on the button below! +

+
+
+
+ +
+ +{% endblock %} \ No newline at end of file diff --git a/templates/users/explore.html b/templates/users/explore.html deleted file mode 100644 index 47aa888..0000000 --- a/templates/users/explore.html +++ /dev/null @@ -1,18 +0,0 @@ -{% extends 'base.html' %} -{% block content %} -

Explore

-

Know your potential

-
-
-
-

Why this community is built

-

The TechBlog™ community is buit for people who love to share and help other people whenever they get stuck. We have built this platform for people to help each other and make project making fun. We encourage people to get together and work in harmony for the wellbeing of all. People can make groups to work on a project or send blogs or videos that explain a topic or problem very significantly and make work much easier for other co-workers or users. Our main goal is to help everyone and enhance the art of Problem Solving through this platform.

-
-
-
-

What do we offer

-

The TechBlog™ community offers a platform for group work and online chat to all and allow our members to share text, images, videos, codes, projects and even more... with any other member.

-
-
-
-{% endblock %} \ No newline at end of file diff --git a/templates/users/people.html b/templates/users/people.html deleted file mode 100644 index fa7495c..0000000 --- a/templates/users/people.html +++ /dev/null @@ -1,25 +0,0 @@ -{% extends 'base.html' %} -{% block content %} -

People

-

Know the people around you better!

-
- - - - - - -
-{% endblock %} \ No newline at end of file diff --git a/templates/users/profile.html b/templates/users/profile.html index 82ddf66..3d7c056 100644 --- a/templates/users/profile.html +++ b/templates/users/profile.html @@ -51,14 +51,7 @@ - - {% if user.is_authenticated %} -
- {% csrf_token %} - -
- {% endif %} - +