From f00bda83370a936f02f8ead172f407cca38bf963 Mon Sep 17 00:00:00 2001 From: Rob Drew Date: Fri, 16 Nov 2018 09:18:59 -0400 Subject: [PATCH] templates --- .../article_pages/article--hero.html.twig | 2 ++ .../article_pages/article--hero.html.twig.bk | 34 +++++++++++++++++++ .../node--journal-article--full.html.twig | 2 +- 3 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 templates/article_pages/article--hero.html.twig.bk diff --git a/templates/article_pages/article--hero.html.twig b/templates/article_pages/article--hero.html.twig index 0a40540..e878632 100644 --- a/templates/article_pages/article--hero.html.twig +++ b/templates/article_pages/article--hero.html.twig @@ -6,9 +6,11 @@ {% block title_area %} {{ title_prefix }} + {{ label }} + {{ label }} diff --git a/templates/article_pages/article--hero.html.twig.bk b/templates/article_pages/article--hero.html.twig.bk new file mode 100644 index 0000000..e878632 --- /dev/null +++ b/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 %} +
+ + +
diff --git a/templates/article_pages/node--journal-article--full.html.twig b/templates/article_pages/node--journal-article--full.html.twig index 977424c..d614e36 100644 --- a/templates/article_pages/node--journal-article--full.html.twig +++ b/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',