New design for project landing pages and blogs

This commit is contained in:
2018-04-16 14:33:38 +02:00
parent e5259bb56c
commit 505e3c3a6d
11 changed files with 95 additions and 34 deletions

View File

@@ -1,14 +1,16 @@
| {% block body %}
| {% extends 'projects/landing.html' %}
| {% block body %}
| {% if node.picture %}
header
img.header(src="{{ node.picture.thumbnail('l', api=api) }}")
| {% endif %}
| {% block navbar_secondary %}
| {{ super() }}
| {% endblock navbar_secondary %}
#node-container
#node-overlay
| {% if node.picture %}
section#node-preview.node-preview.page
img.node-preview-thumbnail#node-preview-thumbnail(
src="{{ node.picture.thumbnail('l', api=api) }}")
| {% endif %}
section.node-details-container.page
.node-details-header
@@ -28,6 +30,7 @@ include ../_scripts
| {% endblock %}
| {% block footer_scripts %}
| {{ super() }}
script.
// Push the correct URL onto the history. This push happens after the id has
// been pushed to the history already. We should probably keep only this and
@@ -41,6 +44,9 @@ script.
url
);
// Generate GA pageview
ga('send', 'pageview', location.pathname);
$(document).ready(function () {
ga('send', 'pageview', location.pathname);
});
| {% endblock %}