From 748190d15bdffe60ad6337018d9027205f27eab5 Mon Sep 17 00:00:00 2001 From: Pablo Vazquez Date: Wed, 19 Sep 2018 15:50:03 +0200 Subject: [PATCH] Fix jumbotron in index collection --- src/templates/production.pug | 3 ++- src/templates/projects/landing.pug | 4 +++- src/templates/projects_index_collection.pug | 17 ++++++++++------- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/src/templates/production.pug b/src/templates/production.pug index c7ad085..2440b46 100644 --- a/src/templates/production.pug +++ b/src/templates/production.pug @@ -30,7 +30,8 @@ script. '{{ self.page_title() }}', '{{ page_header_text }}', "{{ url_for('static', filename='assets/img/backgrounds/background_agent327_04.jpg')}}")( - class="jumbotron-overlay") + class="jumbotron-overlay", + style="background-position: center top") .container +group('Modeling', 'modeling') diff --git a/src/templates/projects/landing.pug b/src/templates/projects/landing.pug index 702e90c..3b0947b 100644 --- a/src/templates/projects/landing.pug +++ b/src/templates/projects/landing.pug @@ -1,6 +1,8 @@ | {% extends 'layout.html' %} include ../../../../pillar/src/templates/mixins/components +| {% set title = 'landing' %} + | {% import 'projects/_macros.html' as projectmacros %} | {% from '_macros/_asset_list_item.html' import asset_list_item %} @@ -100,7 +102,7 @@ link(href="{{ url_for('static_cloud', filename='assets/css/project-main.css') }} section.py-5 h2.pb-3.text-center Gallery - .gallery + .gallery.mx-auto | {% for n in activity_stream %} | {% if n.node_type not in ['comment', 'post'] and n.picture %} .thumbnail.expand-image-links diff --git a/src/templates/projects_index_collection.pug b/src/templates/projects_index_collection.pug index 2f17873..d475278 100644 --- a/src/templates/projects_index_collection.pug +++ b/src/templates/projects_index_collection.pug @@ -47,6 +47,7 @@ meta(name="twitter:image", content="{{ page_header_image }}") | {% block body %} +| {% if title in ['film', 'open-projects'] %} | {# Specify the URL of projects in production. These are hidden from the listing below. #} | {% set projects_in_production = ['spring'] %} - var jumbotron_title = 'SPRING'; @@ -57,13 +58,15 @@ meta(name="twitter:image", content="{{ page_header_image }}") "{{ url_for('static', filename='assets/img/backgrounds/background_spring_01.jpg')}}")( class="jumbotron-overlay") - a.btn.btn-primary.mt-4.px-4( - href="{{ url_for('projects.view', project_url='spring') }}") Browse the Project - a.btn.btn-link-light.mt-4( - style="color: white", - href="{{ url_for('main.project_blog', project_url='spring') }}") - | Read the Blog - i.pi-angle-right.px-1 + .d-block + a.btn.btn-primary.mt-4.px-4( + href="{{ url_for('projects.view', project_url='spring') }}") Browse the Project + a.btn.btn-link-light.mt-4( + style="color: white", + href="{{ url_for('main.project_blog', project_url='spring') }}") + | Read the Blog + i.pi-angle-right.px-1 +| {% endif %} .container.pb-5 .row