From 8fdd54eaad22442400baf3a56e4d53c22c4c6e88 Mon Sep 17 00:00:00 2001 From: Pablo Vazquez Date: Fri, 14 Sep 2018 20:30:58 +0200 Subject: [PATCH] Class names and minor blog style tweak --- src/templates/nodes/custom/blog/_macros.pug | 11 ++++++++--- src/templates/projects/view.pug | 4 ++-- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/templates/nodes/custom/blog/_macros.pug b/src/templates/nodes/custom/blog/_macros.pug index cde8cff..87edabc 100644 --- a/src/templates/nodes/custom/blog/_macros.pug +++ b/src/templates/nodes/custom/blog/_macros.pug @@ -11,8 +11,8 @@ include ../../../../../../pillar/src/templates/mixins/components "{{ node.picture.thumbnail('h', api=api) }}", "{{ node.url }}")(class="row") | {% else %} - .pt-3.text-center.text-muted - h2 + .pt-5.text-center.text-muted + h2.pb-2 a.text-muted(href="{{ node.url }}") | {{ node.name }} ul.d-flex.list-unstyled.justify-content-center @@ -46,6 +46,11 @@ include ../../../../../../pillar/src/templates/mixins/components | {{ node.properties | markdowned('content') }} hr.my-4 + + .mx-auto + #comments-embed + .comments-list-loading + i.pi-spin | {% endmacro %} //- ******************************************************* -// @@ -118,7 +123,7 @@ include ../../../../../../pillar/src/templates/mixins/components //- Macro for rendering the navigation buttons for prev/next pages -// | {% macro render_archive_pagination(project) %} -.blog-archive-navigation +.blog-archive-navigation.mb-4 | {% if project.blog_archive_prev %} a.archive-nav-button( href="{{ project.blog_archive_prev }}", rel="prev") diff --git a/src/templates/projects/view.pug b/src/templates/projects/view.pug index 43a8fd6..0c48be1 100644 --- a/src/templates/projects/view.pug +++ b/src/templates/projects/view.pug @@ -1,6 +1,6 @@ | {% extends 'layout.html' %} | {% from '_macros/_add_new_menu.html' import add_new_menu %} -| {% import 'projects/_macros.html' as projectmacros %} +| {% from 'projects/_macros.html' import render_secondary_navigation %} include ../../../../pillar/src/templates/mixins/components @@ -87,7 +87,7 @@ link(href="{{ url_for('static_cloud', filename='assets/css/project-main.css') }} | {% endblock %} | {% block navigation_tabs %} -| {{ projectmacros.render_secondary_navigation(project, navigation_links, title) }} +| {{ render_secondary_navigation(project, navigation_links, title) }} | {% endblock navigation_tabs %} | {% block body %}