pillar/src/templates/nodes/custom/page/view_embed.pug
Pablo Vazquez 72a42c2bf8 Template Cleanup: Remove unused 'title' variable.
'title' is set by the extended template ('landing').
2019-03-29 15:19:28 +01:00

51 lines
1.1 KiB
Plaintext

| {% extends 'projects/landing.html' %}
include ../../../mixins/components
| {% block body %}
.expand-image-links.imgs-fluid
| {% if node.picture %}
+jumbotron(
"{{ node.name }}",
null,
"{{ node.picture.thumbnail('h', api=api) }}",
"{{ node.url }}")
| {% endif %}
.container.pb-5
.row
.col-8.mx-auto
| {% if node.description %}
.node-details-description.pt-5
| {{ node | markdowned('description') }}
| {% endif %}
small.text-muted
span(title="created {{ node._created | pretty_date }}") Updated {{ node._updated | pretty_date }}
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
// skip the project-level displayNode push.
var url = '{{ node.properties.url }}'
var replace_state = {nodeId: '{{node._id}}', url: url};
window.history.replaceState(
replace_state,
'{{node.name}}',
url
);
// Generate GA pageview
$(document).ready(function () {
ga('send', 'pageview', location.pathname);
});
| {% endblock %}