From 86c09ba5588711c6c800057d63bd616ba7191dd4 Mon Sep 17 00:00:00 2001 From: dhruvi16 Date: Thu, 18 Jun 2020 02:22:39 +0530 Subject: [PATCH 01/13] Update blog post page --- models/blog.ini | 2 +- themes/vocabulary_theme/templates/blog.html | 13 ++++---- .../templates/macros/posts.html | 30 ++++++++++++++----- webpack/sass/main.scss | 12 ++++++++ 4 files changed, 44 insertions(+), 13 deletions(-) diff --git a/models/blog.ini b/models/blog.ini index 5c66499f3..c2520e949 100644 --- a/models/blog.ini +++ b/models/blog.ini @@ -19,4 +19,4 @@ order_by = -pub_date, title [pagination] enabled = yes -per_page = 10 +per_page = 12 diff --git a/themes/vocabulary_theme/templates/blog.html b/themes/vocabulary_theme/templates/blog.html index 81e041ee9..11e6fc0ae 100644 --- a/themes/vocabulary_theme/templates/blog.html +++ b/themes/vocabulary_theme/templates/blog.html @@ -3,11 +3,14 @@ {% from "macros/pagination.html" import render_pagination %} {% from "macros/posts.html" import render_posts %} + {% block title %}{{ this.title }}{% endblock %} {% block body %} - {{ this.description }} - {{ render_posts(this.pagination.items) }} - {% if this.pagination.pages > 1 %} - {{ render_pagination(this.pagination) }} - {% endif %} +
+ {{ this.description }} + {{ render_posts(this.pagination.items) }} + {% if this.pagination.pages > 1 %} + {{ render_pagination(this.pagination) }} + {% endif %} +
{% endblock %} diff --git a/themes/vocabulary_theme/templates/macros/posts.html b/themes/vocabulary_theme/templates/macros/posts.html index 8aa6a0214..78cf24028 100644 --- a/themes/vocabulary_theme/templates/macros/posts.html +++ b/themes/vocabulary_theme/templates/macros/posts.html @@ -1,14 +1,30 @@ {% from "macros/author_name.html" import render_author_name %} {% macro render_posts(posts) %} - + {% endmacro %} diff --git a/webpack/sass/main.scss b/webpack/sass/main.scss index 2d12f5a1a..509e1594b 100644 --- a/webpack/sass/main.scss +++ b/webpack/sass/main.scss @@ -33,6 +33,18 @@ $project-card-theme: $blue; } } +.blog-entry { + @extend .padding-big; + + .blog-title { + @extend .has-color-dark-slate-gray; + } + + .author-name { + @extend .has-color-forest-green; + } +} + h2 { font-weight: 600; padding-bottom: 0.5rem; From 2fb3b5e682f1f169aaabbf9d5419ebcf52fda4a5 Mon Sep 17 00:00:00 2001 From: dhruvi16 Date: Thu, 18 Jun 2020 18:26:21 +0530 Subject: [PATCH 02/13] Update title and description --- themes/vocabulary_theme/templates/blog.html | 21 +++++++++------- themes/vocabulary_theme/templates/layout.html | 14 +++-------- .../templates/macros/posts.html | 2 +- webpack/sass/main.scss | 24 +++++++++++++++++-- 4 files changed, 39 insertions(+), 22 deletions(-) diff --git a/themes/vocabulary_theme/templates/blog.html b/themes/vocabulary_theme/templates/blog.html index 11e6fc0ae..b73f25345 100644 --- a/themes/vocabulary_theme/templates/blog.html +++ b/themes/vocabulary_theme/templates/blog.html @@ -3,14 +3,19 @@ {% from "macros/pagination.html" import render_pagination %} {% from "macros/posts.html" import render_posts %} - -{% block title %}{{ this.title }}{% endblock %} {% block body %} -
- {{ this.description }} - {{ render_posts(this.pagination.items) }} - {% if this.pagination.pages > 1 %} - {{ render_pagination(this.pagination) }} - {% endif %} +
+
+
+

{{ this.title }}

+
{{ this.description }}
+
+
+
+ {{ render_posts(this.pagination.items) }} + {% if this.pagination.pages > 1 %} + {{ render_pagination(this.pagination) }} + {% endif %} +
{% endblock %} diff --git a/themes/vocabulary_theme/templates/layout.html b/themes/vocabulary_theme/templates/layout.html index c642646fe..bf1b83ed5 100644 --- a/themes/vocabulary_theme/templates/layout.html +++ b/themes/vocabulary_theme/templates/layout.html @@ -127,17 +127,9 @@
-
-
-
-
-

{% block header %}{{ this.title }}{% endblock %}

- {% block body %}{% endblock %} - Back to top -
-
-
-
+ + {% block body %}{% endblock %} +