Browse Source

sideshow on lp

master
rdrew 2 days ago
parent
commit
c3a9c78fd3
  1. 66
      templates/content/node--landing-page.html.twig

66
templates/content/node--landing-page.html.twig

@ -80,37 +80,39 @@ not node.isPublished() ? 'node--unpublished',
view_mode ? 'node--view-mode-' ~ view_mode|clean_class, view_mode ? 'node--view-mode-' ~ view_mode|clean_class,
] ]
%} %}
<article{{ attributes.addClass(classes) }}> <div class="lp_layout_container">
<header class="{{ layout }}"> <article{{ attributes.addClass(classes) }}>
{{ title_prefix }} <header class="{{ layout }}">
{% if label and not page %} {{ title_prefix }}
<h2{{ title_attributes.addClass('node__title') }}> {% if label and not page %}
<a href="{{ url }}" rel="bookmark">{{ label }}</a> <h2{{ title_attributes.addClass('node__title') }}>
</h2> <a href="{{ url }}" rel="bookmark">{{ label }}</a>
{% endif %} </h2>
{{ title_suffix }} {% endif %}
{% if display_submitted %} {{ title_suffix }}
<div class="node__meta"> {% if display_submitted %}
{% if author_picture %} <div class="node__meta">
<div class="node__author-image"> {% if author_picture %}
{{ author_picture }} <div class="node__author-image">
{{ author_picture }}
</div>
{% endif %}
<span{{ author_attributes }}>
{{ 'By'|t }} {% apply spaceless %}{{ author_name }}{% endapply %}, {{ date }}
</span>
{{ metadata }}
</div> </div>
{% endif %} {% endif %}
<span{{ author_attributes }}> </header>
{{ 'By'|t }} {% apply spaceless %}{{ author_name }}{% endapply %}, {{ date }} <div{{ content_attributes.addClass('node__content', layout) }}>
</span> {# Comments not part of content, so they won't inherit .text-content styles. #}
{{ metadata }} {{ content|without('comment') }}
</div> </div>
{% endif %} {% if content.comment %}
</header> <div id="comments" class="{{ layout }}">
<div{{ content_attributes.addClass('node__content', layout) }}> {{ content.comment }}
{# Comments not part of content, so they won't inherit .text-content styles. #} </div>
{{ content|without('comment') }} {% endif %}
</div> </article>
{% if content.comment %} <aside class="slider">slider</aside>
<div id="comments" class="{{ layout }}"> </div>
{{ content.comment }}
</div>
{% endif %}
</article>
<aside class="slider">slider</aside>

Loading…
Cancel
Save