{% if signedin() %}
    {% set user = user() %}
    
    <p>
        You are logged in as <strong>{{ user['username'] }}</strong>.
    </p>
    <p>
        <a href="{{ url('index') }}">Homepage</a>
        <a href="{{ url('signout') }}">Sign out</a>
    </p>

{% else %}
    
    <p>
        Public profile of <strong>{{ user['username'] }}</strong>
    </p>
    
{% endif %}
