From 9624f6bd761948f5ca17be324dbbd8f59b442b1a Mon Sep 17 00:00:00 2001 From: Pablo Vazquez Date: Sun, 16 Sep 2018 04:05:37 +0200 Subject: [PATCH] Style pages --- .../nodes/custom/comment/_macros.pug | 2 +- .../nodes/custom/page/view_embed.pug | 36 ++++++++++--------- 2 files changed, 20 insertions(+), 18 deletions(-) diff --git a/src/templates/nodes/custom/comment/_macros.pug b/src/templates/nodes/custom/comment/_macros.pug index 70c04929..fc2601ad 100644 --- a/src/templates/nodes/custom/comment/_macros.pug +++ b/src/templates/nodes/custom/comment/_macros.pug @@ -5,7 +5,7 @@ class="{% if is_reply %}is-reply{% else %}is-first{% endif %}") .comment-avatar - img(src="{{ comment._user.email | gravatar }}") + img(src="{{ comment._user.email | gravatar }}", alt="{{ comment._user.full_name }}") .comment-content .comment-body diff --git a/src/templates/nodes/custom/page/view_embed.pug b/src/templates/nodes/custom/page/view_embed.pug index b0cb38e2..0b55ef42 100644 --- a/src/templates/nodes/custom/page/view_embed.pug +++ b/src/templates/nodes/custom/page/view_embed.pug @@ -1,26 +1,28 @@ | {% extends 'projects/landing.html' %} +include ../../../mixins/components | {% block body %} -| {% if node.picture %} -header - img.header(src="{{ node.picture.thumbnail('h', api=api) }}") -| {% endif %} +.expand-image-links.imgs-fluid + | {% if node.picture %} + +jumbotron( + "{{ node.name }}", + "{{ node._created | pretty_date }}{% if node.user.full_name %} ยท {{ node.user.full_name }}{% endif %}", + "{{ node.picture.thumbnail('h', api=api) }}", + "{{ node.url }}") + | {% endif %} -#node-container - #node-overlay +.container.pb-5 + .row + .col-8.mx-auto + h2.pt-5.text-center {{node.name}} - .node-details-container.page.expand-image-links.imgs-fluid + | {% if node.description %} + .node-details-description + | {{ node | markdowned('description') }} + | {% endif %} - h2.pt-3.text-center {{node.name}} - - hr - - | {% if node.description %} - | {{ node | markdowned('description') }} - | {% endif %} - - small.text-muted - span(title="created {{ node._created | pretty_date }}") Updated {{ node._updated | pretty_date }} + small.text-muted + span(title="created {{ node._created | pretty_date }}") Updated {{ node._updated | pretty_date }} include ../_scripts