Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
hopetree committed Mar 5, 2024
1 parent 0d0e20d commit c4a40f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/blog/context_processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
'css_blog_detail': '20240131.01',
'css_blog_night': '20240115.01',

'js_blog_base': '20240115.01',
'js_blog_base': '20240305.01',
'js_blog_article': '20240115.01',
'js_blog_code': '20240129.02',

Expand Down
4 changes: 2 additions & 2 deletions apps/blog/static/blog/js/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,13 @@ $("#change-theme").click(function () {
const theme_value = Cookies.get(theme_key);
if (theme_value === "dark") {
Cookies.set(theme_key, "light", {
expires: 180,
expires: 3,
path: '/'
});
removeDarkTheme();
} else {
Cookies.set(theme_key, "dark", {
expires: 180,
expires: 3,
path: '/'
});
addDarkTheme();
Expand Down

0 comments on commit c4a40f6

Please sign in to comment.