Skip to content

Instantly share code, notes, and snippets.

@soulston
Created December 21, 2012 13:36
Show Gist options
  • Save soulston/4352889 to your computer and use it in GitHub Desktop.
Save soulston/4352889 to your computer and use it in GitHub Desktop.
<article id="node-{{ node.nid }}" class="clearfix {{ attributes.class }}"{{ attributes }}>
<div class="test">This code should be output at the top of the node</div>
{{ title_prefix }}
{% if not page %}
<h2><a href="{{ node_url }}" rel="bookmark">{{ title }}</a></h2>
{% endif %}
{{ title_suffix }}
{% if display_submitted %}
<footer>
{{ user_picture }}
{% set args = {'!author': author, '!date': created} %}
<p class="submitted">{{ 'by !author on !date' | t(args) }}</p>
</footer>
{% endif %}
<div class="content {{ content_attributes.class }}"{{ content_attributes }}>
{# We hide the comments and links now so that we can render them later. #}
{{ hide(content.comments) }}
{{ hide(content.links) }}
{{ content }}
</div>
{{ content.links }}
{{ content.comments }}
</article>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment