Mmm, no :smiley: 

0. Variable assignment should be *inside* the `page_head` block
0. Block should be defined in `page_head.html.twig`, not in `pagelayout.html.twig`
0. You don't use `ez_content_name()`

My suggestion:

Simplest:
```jinja
{# Inside page_head.html.twig #}
{% block page_head %}
    {# Defining page title based on current content name, if available #}
    {% if content is defined and page_title is not defined %}{% set page_title = ez_content_name( content ) %}{% endif %}
{% endblock %}
```