Skip to content

Commit

Permalink
add parent theme
Browse files Browse the repository at this point in the history
  • Loading branch information
Thorsten Marx committed Oct 2, 2024
1 parent a7ad98c commit f8fe425
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 326 deletions.
39 changes: 0 additions & 39 deletions cms-server/themes/test/templates/blog-entry.html

This file was deleted.

56 changes: 0 additions & 56 deletions cms-server/themes/test/templates/blog.html

This file was deleted.

38 changes: 20 additions & 18 deletions cms-server/themes/test/templates/content.html
Original file line number Diff line number Diff line change
@@ -1,32 +1,34 @@
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<head>
<th:block th:replace="libs/fragments.html :: header">
</th:block>
</head>
<head>
<th:block th:replace="libs/fragments.html :: header">
</th:block>
</head>

<body>
<body>

<nav th:replace="libs/fragments.html :: navigation"></nav>
<nav th:replace="libs/fragments.html :: navigation"></nav>

<div id="content">
<div class="container" th:utext="${content}"></div>
<div id="content">
<h3>Overridden template from parent</h3>

<div class="container" th:utext="${content}"></div>

<div class="container" th:if="${sections.containsKey('part')}">
<th:block th:each="part : ${sections.get('part')}">
<th:block th:utext="${part.content}"></th:block>
</th:block>
</div>
<div class="container" th:if="${sections.containsKey('part')}">
<th:block th:each="part : ${sections.get('part')}">
<th:block th:utext="${part.content}"></th:block>
</th:block>
</div>

</div>
</div>

<th:block th:replace="libs/fragments.html :: footer"></th:block>
<th:block th:replace="libs/fragments.html :: footer"></th:block>

</body>
</body>

<script th:replace="libs/fragments.html :: footer_scripts">
<script th:replace="libs/fragments.html :: footer_scripts">

</script>
</script>

</html>
7 changes: 0 additions & 7 deletions cms-server/themes/test/templates/content.part.html

This file was deleted.

12 changes: 0 additions & 12 deletions cms-server/themes/test/templates/error.html

This file was deleted.

83 changes: 0 additions & 83 deletions cms-server/themes/test/templates/libs/fragments.html

This file was deleted.

29 changes: 0 additions & 29 deletions cms-server/themes/test/templates/navigation.html

This file was deleted.

59 changes: 0 additions & 59 deletions cms-server/themes/test/templates/search.html

This file was deleted.

23 changes: 0 additions & 23 deletions cms-server/themes/test/templates/start.html

This file was deleted.

0 comments on commit f8fe425

Please sign in to comment.