From cf2843af2afc1c8068cdc70f6a5f7ebd54d85e09 Mon Sep 17 00:00:00 2001 From: RealOrangeOne Date: Tue, 15 Mar 2016 22:55:07 +0000 Subject: [PATCH] Add more details to blog page --- project/blog/views.py | 2 +- static/src/less/variables.less | 2 +- templates/blog/{posts.html => post.html} | 12 ++++++------ 3 files changed, 8 insertions(+), 8 deletions(-) rename templates/blog/{posts.html => post.html} (51%) diff --git a/project/blog/views.py b/project/blog/views.py index 63c8439..ec1d9f0 100644 --- a/project/blog/views.py +++ b/project/blog/views.py @@ -4,7 +4,7 @@ from django.http import Http404 class BlogView(CustomTemplate): - template_name = "blog/posts.html" + template_name = "blog/post.html" def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) diff --git a/static/src/less/variables.less b/static/src/less/variables.less index 7ec8801..d91ead6 100644 --- a/static/src/less/variables.less +++ b/static/src/less/variables.less @@ -18,7 +18,7 @@ @font-family-serif: 'Roboto'; @font-family-monospace: Menlo, Monaco, Consolas, "Courier New", monospace; @font-family-base: @font-family-sans-serif; -@font-size-base: 15px; +@font-size-base: 16px; @font-size-large: ceil((@font-size-base * 1.25)); @font-size-small: ceil((@font-size-base * 0.85)); @font-size-h1: floor((@font-size-base * 2.6)); diff --git a/templates/blog/posts.html b/templates/blog/post.html similarity index 51% rename from templates/blog/posts.html rename to templates/blog/post.html index c8180e2..2a0339c 100644 --- a/templates/blog/posts.html +++ b/templates/blog/post.html @@ -5,14 +5,14 @@ {% block content %}
-
+
+ {{ blog.content | safe }} +
+
Published: {{ blog.date }}
+
{{ blog.like_count }}
+
View Post
- -
- {{ blog.content | safe }} -
- {% endblock %}