Skip to content

Commit

Permalink
Apply theme on default page (#376)
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Weitkamp <[email protected]>
  • Loading branch information
cweitkamp authored Oct 5, 2020
1 parent ecea5a2 commit 1e5a41f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ public CharSequence renderSitemapList(Set<SitemapProvider> sitemapProviders) thr
pageSnippet = StringUtils.replace(pageSnippet, "%title%", "BasicUI");
pageSnippet = StringUtils.replace(pageSnippet, "%htmlclass%",
config.getCssClassList() + " page-welcome-sitemaps");
pageSnippet = StringUtils.replace(pageSnippet, "%theme%", config.getTheme());
pageSnippet = StringUtils.replace(pageSnippet, "%content%", listSnippet);

return pageSnippet;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

<script src="mdl/material.min.js"></script>
</head>
<body class="mdl-color-text--grey-700">
<body class="mdl-color-text--grey-700" data-theme="%theme%">
<div class="mdl-layout mdl-js-layout mdl-layout--fixed-header">
<header class="mdl-layout__header mdl-layout__header--scroll navigation navigation-home">
<div class="mdl-layout__header-row">
Expand Down

0 comments on commit 1e5a41f

Please sign in to comment.