Browse Source

templates

dependabot/npm_and_yarn/acorn-5.7.4
Rob Drew 6 years ago
parent
commit
f00bda8337
  1. 2
      templates/article_pages/article--hero.html.twig
  2. 34
      templates/article_pages/article--hero.html.twig.bk
  3. 2
      templates/article_pages/node--journal-article--full.html.twig

2
templates/article_pages/article--hero.html.twig

@ -6,9 +6,11 @@
{% block title_area %}
{{ title_prefix }}
<a href="{{url}}">
<h1{{ title_attributes.addClass('article--title title') }}>
{{ label }}
</h1>
</a>
<h1{{ title_attributes.addClass('article--title title sr-only') }}>
{{ label }}
</h1>

34
templates/article_pages/article--hero.html.twig.bk

@ -0,0 +1,34 @@
{% set imagePath = file_url(content.field_article_highlight_image|field_target_entity.image.entity.uri.value) %}
{% set articleType = content.field_article_type|field_value %}
{% set pubDate = content.field_publication_date_electroni|field_value %}
<header style="background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('{{ imagePath }}')" class="article-title-banner node__header paragraph-responsive-typography-enabled article-header">
<div class="container article-info--wrapper">
{% block title_area %}
{{ title_prefix }}
<a href="{{url}}">
<h1{{ title_attributes.addClass('article--title title') }}>
{{ label }}
</h1>
</a>
<h1{{ title_attributes.addClass('article--title title sr-only') }}>
{{ label }}
</h1>
{{ title_suffix }}
{% endblock %}
<section class="article-header--metadata">
<div class="left">
<div class="article--contributor">
<!--Robert N. Drew-->
{{ content.field_authors_and_affiliations|without('label') }}
</div>
</div>
<div class="right">
<div class="article--type">{{ articleType}} </div>
<div class="article--date-published">
{{pubDate}} </div>
</div>
</section>
</div>
</header>

2
templates/article_pages/node--journal-article--full.html.twig

@ -1,7 +1,7 @@
{#{{ kint(node) }}#}
{% set toc = drupal_entity('block', 'tableofcontents', check_access=false) %}
{% set tabs = drupal_block('local_tasks_block') %}
{{dump(toc|render|striptags|trim)}}
{#{{dump(toc|render|striptags|trim)}}#}
{%
set classes = [
'node',

Loading…
Cancel
Save