<body> {% if href in ['layout.html', 'index.html, 'about.html', 'user.html'] %} <h1>{{ title }}</h1> {% else %} <h2>{{ title }}</h2> {% endif %} </body>