{% if content.links %}
    <div class="node__links">
      {{ content.links }}
    </div>
  {% endif %}

It still output an empty tag:

<div class="node__links"></div>

Reproduce:
1. add node
2. view node, eg node/1
3. see empty tag in source code.

Comments

opdavies’s picture

Status: Active » Closed (cannot reproduce)
Issue tags: +Amsterdam 2014

I can't find find references to "content.links" or "node__links" in the 8.0.x branch.

opdavies’s picture

Issue tags: -Amsterdam 2014 +Amsterdam2014
droplet’s picture

Status: Closed (cannot reproduce) » Active

Re-open, updated summary

droplet’s picture

Issue summary: View changes
opdavies’s picture

Confirmed.

idebr’s picture

bill richardson’s picture

Component: markup » theme system

Manage display links need to be set to visible to view the empty div as shown in report. Changed tag to theme - see related issue in #6 - div and class being displayed when no links present.

opdavies’s picture

Status: Active » Closed (cannot reproduce)

This doesn't seem to be an issue in the current version of 8.0.x.

In #2349721: Copy node templates to Classy, the node templates were changed to use the Classy theme - see commit ebea5b.