Skip to content

Commit

Permalink
Update Thymeleaf templates to use dynamic title and description varia…
Browse files Browse the repository at this point in the history
…bles
  • Loading branch information
thkwag committed Jan 1, 2025
1 parent 3ee6f66 commit 3dae646
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions examples/basic/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
<html xmlns:th="http://www.thymeleaf.org"
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
layout:decorate="~{layout/default}">
<head>
<title>Welcome to ThymeLab</title>
</head>
<head>
<title th:text="${pageTitle}">Title</title>
</head>
<body>
<main layout:fragment="content">
<div class="welcome-section">
<h1>[[${welcome.title}]]</h1>
<p>[[${welcome.description}]]</p>
<p th:text="${welcome.description}">description</p>
</div>
</main>
</body>
Expand Down
2 changes: 1 addition & 1 deletion examples/basic/templates/pages/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
layout:decorate="~{layout/default}">
<head>
<title th:text="${pageTitle}">About ThymeLab</title>
<title th:text="${pageTitle}">Title</title>
</head>
<body>
<main layout:fragment="content">
Expand Down

0 comments on commit 3dae646

Please sign in to comment.