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