Skip to content
This repository was archived by the owner on Dec 18, 2025. It is now read-only.

Commit d85fabf

Browse files
Merge pull request #3 from contentstack/fix/CS-16525_bug_fix
fix: bug resolved [CS-16525]
2 parents d7fb47c + 0188b92 commit d85fabf

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/main/resources/templates/blog-post.html

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
8-
<th:block th:each="key:${blogPost.seo}">
8+
<th:block th:if="${blogPost}" th:each="key:${blogPost.seo}">
99
<th:block
1010
th:if="${#strings.arraySplit(key,'=')[0]}!= enable_search_indexing"
1111
>
@@ -30,16 +30,15 @@
3030
/>
3131
<title>Blog Posts</title>
3232
</head>
33-
3433
<body>
35-
<div lang="en" th:replace="components/header :: header"></div>
36-
<main class="mainClass">
34+
<div lang="en" th:if="${header}" th:replace="components/header :: header"></div>
35+
<main class="mainClass" th:if="${blogPost}">
3736
<div
3837
lang="en"
3938
th:replace="components/render-components :: renderComponents"
4039
></div>
4140
<div lang="en" th:replace="components/blog-content :: blogPost"></div>
4241
</main>
43-
<div lang="en" th:replace="components/footer :: footer"></div>
42+
<div lang="en" th:if="${footer}" th:replace="components/footer :: footer"></div>
4443
</body>
45-
</html>
44+
</html>

0 commit comments

Comments
 (0)