I'm starting a timelapse. I started with a general layout page:
snippets /layout.html
<!DOCTYPE html> <html xmlns:th="http://www.thymeleaf.org"> <head th:fragment="headerFragment"> <title>Template title</title> </head> <body> <div class="container"> Some text </div> </body> </html>
And the content page:
page.html
<!DOCTYPE html> <html xmlns:th="http://www.thymeleaf.org"> <head th:include="fragments/layout :: headerFragment"> <title>Page title</title> </head> <body> <div class="container"> Some text </div> </body> </html>
When I create a page, the title is always from the template, not from the page. Is it possible that Thymeleaf has metas, scripts, and style in common (in the HEAD tag), but for the title of each page?
source share