Compare commits

..

No commits in common. 'f87b0603e23439d78f8270f9ae00d349dd10cd47' and '4d6cf2c18fd32a6fd8602fbb5ae1729f47061105' have entirely different histories.

  1. 12
      css_overrides.css
  2. 20
      templates/news_articles/news--hero.html.twig
  3. 19
      templates/news_articles/news--hero.html.twig.old

12
css_overrides.css

@ -60,15 +60,3 @@ img.orcid_logo {
font-size: smaller; font-size: smaller;
line-height: 2; line-height: 2;
} }
.teaser-card__body .field--name-field-affiliation-string {
display:none;
}
.field--name-field-journal-article-abstract {
background: #eee;
padding: .5em;
margin-bottom:1.5em;
p:last-child {
padding-bottom: 0;
}
}

20
templates/news_articles/news--hero.html.twig

@ -1,10 +1,7 @@
{% if not (node.field_article_highlight_image.isEmpty == true) and content.field_article_highlight_image is defined %}
{% set imagePath = file_url(content.field_article_highlight_image|field_target_entity.image.entity.uri.value) %} {% set imagePath = file_url(content.field_article_highlight_image|field_target_entity.image.entity.uri.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"> <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">
{% else %}
<header class="no_image article-title-banner node__header paragraph-responsive-typography-enabled article-header">
{% endif %}
<div class="container article-info--wrapper"> <div class="container article-info--wrapper">
{% block title_area %} {% block title_area %}
{{ title_prefix }} {{ title_prefix }}
<h1{{ title_attributes.addClass('article--title title') }}> <h1{{ title_attributes.addClass('article--title title') }}>
@ -16,8 +13,19 @@
{{ title_suffix }} {{ title_suffix }}
{% endblock %} {% endblock %}
<section class="article-header--metadata"> <section class="article-header--metadata">
<div class="left"> </div> <div class="left">
<div class="right"> </div> {#<div class="article--contributor">#}
{#Robert N. Drew#}
{#</div>#}
{#<div class="article--contributor__affiliation">University of Prince Edward Island</div>#}
</div>
<div class="right">
{#<div class="article--type">Article</div>#}
{#<div class="article--date-published">#}
{#Published September 20, 2018 #}
{#</div>#}
</div>
</section> </section>
</div> </div>
</header> </header>

19
templates/news_articles/news--hero.html.twig.old

@ -1,19 +0,0 @@
{% set imagePath = file_url(content.field_article_highlight_image|field_target_entity.image.entity.uri.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 }}
<h1{{ title_attributes.addClass('article--title title') }}>
{{ label }}
</h1>
<h1{{ title_attributes.addClass('article--title title sr-only') }}>
{{ label }}
</h1>
{{ title_suffix }}
{% endblock %}
<section class="article-header--metadata">
<div class="left"> </div>
<div class="right"> </div>
</section>
</div>
</header>
Loading…
Cancel
Save