Skip to content

Commit

Permalink
fix: halo comment plugin get theme mode color err
Browse files Browse the repository at this point in the history
  • Loading branch information
AirboZH committed Sep 12, 2023
1 parent d8d3af4 commit a188c91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ <h1 data-toc-skip>[[${post.spec.title}]]</h1>
group="content.halo.run"
kind="Post"
th:attr="name=${post.metadata.name}"
colorScheme="document.documentElement.getAttribute('data-mode') === 'light' ? 'light' : 'dark'"
colorScheme="document.documentElement.getAttribute('data-mode') === 'dark' ? 'dark' : 'light'"
/>
</div>
<!-- .post-tail-bottom -->
Expand Down

0 comments on commit a188c91

Please sign in to comment.