Template for pages
This commit is contained in:
43
src/templates/nodes/custom/page/view_embed.jade
Normal file
43
src/templates/nodes/custom/page/view_embed.jade
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
| {% block body %}
|
||||||
|
|
||||||
|
#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
|
||||||
|
.node-title#node-title
|
||||||
|
| {{node.name}}
|
||||||
|
|
||||||
|
| {% if node.description %}
|
||||||
|
.node-details-description#node-description
|
||||||
|
| {{node.description}}
|
||||||
|
| {% endif %}
|
||||||
|
|
||||||
|
.node-details-meta.footer
|
||||||
|
ul.node-details-meta-list
|
||||||
|
li.node-details-meta-list-item.author
|
||||||
|
| {{ node.user.full_name }}
|
||||||
|
|
||||||
|
li.node-details-meta-list-item.date(title="Created {{ node._created }}")
|
||||||
|
| {{ node._created | pretty_date }}
|
||||||
|
| {% if (node._created | pretty_date) != (node._updated | pretty_date) %}
|
||||||
|
span(title="Updated {{ node._updated }}") (updated {{ node._updated | pretty_date }})
|
||||||
|
| {% endif %}
|
||||||
|
|
||||||
|
include ../_scripts
|
||||||
|
|
||||||
|
| {% endblock %}
|
||||||
|
|
||||||
|
| {% block footer_scripts %}
|
||||||
|
script.
|
||||||
|
// Generate GA pageview
|
||||||
|
ga('send', 'pageview', location.pathname);
|
||||||
|
| {% endblock %}
|
||||||
|
|
@@ -499,6 +499,7 @@ script.
|
|||||||
"texture" : {"icon": "pi-texture", "max_children": 0},
|
"texture" : {"icon": "pi-texture", "max_children": 0},
|
||||||
"video" : {"icon": "pi-film-thick", "max_children": 0},
|
"video" : {"icon": "pi-film-thick", "max_children": 0},
|
||||||
"blog" : {"icon": "pi-newspaper", "max_children": 0},
|
"blog" : {"icon": "pi-newspaper", "max_children": 0},
|
||||||
|
"page" : {"icon": "pi-document-text", "max_children": 0},
|
||||||
"default" : {"icon": "pi-document"}
|
"default" : {"icon": "pi-document"}
|
||||||
},
|
},
|
||||||
"plugins": ["types",] //, "state", "sort"
|
"plugins": ["types",] //, "state", "sort"
|
||||||
|
Reference in New Issue
Block a user