Skip to content

Instantly share code, notes, and snippets.

@wizhippo
Created August 25, 2021 13:05
Show Gist options
  • Save wizhippo/942ad14db7471194d76ee8979e04a96a to your computer and use it in GitHub Desktop.
Save wizhippo/942ad14db7471194d76ee8979e04a96a to your computer and use it in GitHub Desktop.
<article class="view-type view-type-{{ view_type }} {{ content.contentType.identifier|replace({'_': '-'}) }}">
<div class="title file mime-type-{{ content.getField('file').value.mimeType|replace({'/': '-'})|replace({'.': '-'}) }}">
{{ ez_render_field(content, 'file') }}
</div>
<div class="info">
{{ content.contentType.name }}
</div>
</article>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment