Standard Version Logic for Files, Links

Standard Version Logic for Files, Links

<div id="sv__files_links" class="container tab-pane fade">
                    <br>
                    {% if node.field_standard_downloads_secure is not empty %}
                      {% if logged_in %}
                        <h6>Files</h6>
                        {{ content.field_standard_downloads_secure|field_value|safe_join('<br> ') }}
                      {% else %}
                      <h6>Files</h6>
                       <p><strong>Please <a href="/user/login">log in</a> or <a href="/user/registration">create an account</a> to access the file(s) for this Standard</strong></p>
                     {% endif %}
                    <hr>
                    {% endif %}

                    {% if node.field_standard_link is not empty %}
                      {% if logged_in %}
                        <h6>Links </h6>
                               {# <div>{{ content.field_standard_link.0['#url'] }}</div> #}
                         <div>{{ content.field_standard_link|field_value }}</div>
                      {% else %}
                         <h6>Links </h6>
                         <p><strong>Please <a href="/user/login">log in</a> or <a href="/user/registration">create an account</a> to access the link(s) to this Standard.</strong></p>
                       {% endif %}
                    <hr>
                    {% endif %}

                    {% if node.field_standard_document_html is not empty %}
                      {% if logged_in %}
                        <h6>HTML Document</h6>
                        {# <div>{{ drupal_entity('node', node.field_standard_document_html.entity.id) }}</div> #}
                        {{ content.field_standard_document_html }}
                      {% else %}
                        <h6>HTML Document</h6>
                        <p><strong>Please <a href="/user/login">log in</a> or <a href="/user/registration">create an account</a> to access the HTML Document for this Standard.</strong></p>
                      {% endif %}
                    {% else %}
                    <p> No Files, Links or HTML Documents for this Standard</p>
                    {% endif %}

                </div>