Browse Source

update

master
rdrew 3 weeks ago
parent
commit
d51a943b7c
  1. 6
      css_overrides.css
  2. 11
      templates/article_pages/node--journal-article.html.twig

6
css_overrides.css

@ -91,4 +91,10 @@ max-width: 100%;
list-style-type: none; list-style-type: none;
padding-left: 1em; padding-left: 1em;
} }
.toc h3 {
display: none;
}
.page-node-type-news_article header.no_image {
display: none;
}

11
templates/article_pages/node--journal-article.html.twig

@ -1,5 +1,7 @@
{#{{ kint(node) }}#} {#{{ kint(node) }}#}
{% set toc = drupal_entity('block', 'tableofcontents', check_access=false) %} {#{% set toc = drupal_entity('block', 'tableofcontents', check_access=false) %}#}
{#{% set toc = drupal_entity('block', 'tableofcontents_2', check_access=false) %}#}
{#{% set toc = drupal_entity('block', 'lmmi_journal_tableofcontents', check_access=false) %}#}
{% set tabs = drupal_block('local_tasks_block') %} {% set tabs = drupal_block('local_tasks_block') %}
{#{{dump(toc|render|striptags|trim)}}#} {#{{dump(toc|render|striptags|trim)}}#}
{% {%
@ -32,9 +34,10 @@
{% if toc is not empty %} {#{% if toc is not empty %}#}
{{ toc }} {#{{ toc }}#}
{% endif %} {#{% endif %}#}
{{ drupal_entity('block','lmmi_journal_tableofcontents')}}
{#start of article #} {#start of article #}
<div{{ content_attributes.addClass( 'node__main-content', 'clearfix') }}> <div{{ content_attributes.addClass( 'node__main-content', 'clearfix') }}>

Loading…
Cancel
Save