From 88f936772d36fed511ee902470834bbc966ac9df Mon Sep 17 00:00:00 2001 From: Pablo Vazquez Date: Sun, 16 Sep 2018 03:06:08 +0200 Subject: [PATCH] Blog: Layout adjustments --- src/templates/homepage.pug | 20 +++++++++---------- src/templates/nodes/custom/blog/_macros.pug | 22 +++++++++------------ 2 files changed, 18 insertions(+), 24 deletions(-) diff --git a/src/templates/homepage.pug b/src/templates/homepage.pug index 95874e0..8ebf7e0 100644 --- a/src/templates/homepage.pug +++ b/src/templates/homepage.pug @@ -28,17 +28,15 @@ meta(name="twitter:image", content="{% if main_project.picture_header %}{{ main_ | {% block body %} .container-fluid.dashboard-container.imgs-fluid .row - .col-md-8 + .col-md-9.col-xl-10 section.blog - ul.list-unstyled - | {% if latest_posts %} - | {% for node in latest_posts %} - | {{ render_blog_post(node) }} - | {% endfor %} - | {% else %} - li - | No blog entries... yet! - | {% endif %} + | {% if latest_posts %} + | {% for node in latest_posts %} + | {{ render_blog_post(node) }} + | {% endfor %} + | {% else %} + | No blog entries... yet! + | {% endif %} .d-block.text-center a.d-inline-block.p-3.text-muted(href="{{ url_for('main.main_blog') }}") @@ -52,7 +50,7 @@ meta(name="twitter:image", content="{% if main_project.picture_header %}{{ main_ i.pi-rss | RSS Feed - .col-md-4 + .col-md-3.col-xl-2 .dashboard-sidebar section.pt-3 h6.title-underline In Production diff --git a/src/templates/nodes/custom/blog/_macros.pug b/src/templates/nodes/custom/blog/_macros.pug index ce1ab71..2632ee4 100644 --- a/src/templates/nodes/custom/blog/_macros.pug +++ b/src/templates/nodes/custom/blog/_macros.pug @@ -39,16 +39,12 @@ include ../../../../../../pillar/src/templates/mixins/components | {% endif %} | {% endif %} - .container - .row - .col-md-9.mx-auto + .node-details-description.mx-auto.py-5 + | {{ node.properties | markdowned('content') }} - .item-content.pt-4 - | {{ node.properties | markdowned('content') }} + hr.my-4 - hr.my-4 - - #comments-embed.d-flex.justify-content-center.mx-auto + #comments-embed.d-flex.justify-content-center.mx-auto | {% endmacro %} //- ******************************************************* -// @@ -108,11 +104,11 @@ a.card.asset.card-image-fade.pr-0.mx-0.mb-4( | {% endif %} | {% endfor %} - | {% if more_posts_available %} - a.d-block.pb-4(href="{{ project.blog_archive_url }}") - | {{posts_meta.total - posts|length}} more blog posts over here - i.pi-angle-right - | {% endif %} + | {% if more_posts_available %} + a.d-block.pb-4.text-center(href="{{ project.blog_archive_url }}") + | {{posts_meta.total - posts|length}} more blog posts over here + i.pi-angle-right + | {% endif %} | {% else %}