Skip to content

Commit

Permalink
test_0813_v3
Browse files Browse the repository at this point in the history
  • Loading branch information
HyeonsooJo committed Aug 13, 2024
1 parent a21b233 commit 57aa167
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 17 deletions.
6 changes: 3 additions & 3 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ rss_icon: true
# Layout
# -----------------------------------------------------------------------------

navbar_fixed: true
footer_fixed: true
search_enabled: true
navbar_fixed: false
footer_fixed: false
search_enabled: false
socials_in_search: true
bib_search: true

Expand Down
2 changes: 1 addition & 1 deletion _includes/header.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
<!-- Toogle theme mode -->
<li class="toggle-container">
<button id="light-toggle" title="Change theme">
<i class="ti ti-sun-moon" id="light-toggle-system"></i>
{% comment %} <i class="ti ti-sun-moon" id="light-toggle-system"></i> {% endcomment %}
<i class="ti ti-moon-filled" id="light-toggle-dark"></i>
<i class="ti ti-sun-filled" id="light-toggle-light"></i>
</button>
Expand Down
2 changes: 1 addition & 1 deletion _pages/blog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: default
permalink: /blog/
title: blog
nav: true
nav: false
nav_order: 1
pagination:
enabled: true
Expand Down
2 changes: 1 addition & 1 deletion _pages/cv.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: cv
permalink: /cv/
title: cv
nav: true
nav: false
nav_order: 5
cv_pdf: example_pdf.pdf
description: This is a description of the page. You can modify it in '_pages/cv.md'. You can also change or remove the top pdf download button.
Expand Down
2 changes: 1 addition & 1 deletion _pages/profiles.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ layout: profiles
permalink: /people/
title: people
description: members of the lab or group
nav: true
nav: false
nav_order: 7

profiles:
Expand Down
2 changes: 1 addition & 1 deletion _pages/projects.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ layout: page
title: projects
permalink: /projects/
description: A growing collection of your cool projects.
nav: true
nav: false
nav_order: 3
display_categories: [work, fun]
horizontal: false
Expand Down
2 changes: 1 addition & 1 deletion _pages/publications.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ layout: page
permalink: /publications/
title: publications
description: publications by categories in reversed chronological order. generated by jekyll-scholar.
nav: true
nav: false
nav_order: 2
---

Expand Down
2 changes: 1 addition & 1 deletion _pages/repositories.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ layout: page
permalink: /repositories/
title: repositories
description: Edit the `_data/repositories.yml` and change the `github_users` and `github_repos` lists to include your own GitHub profile and repositories.
nav: true
nav: false
nav_order: 4
---

Expand Down
2 changes: 1 addition & 1 deletion _pages/teaching.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ layout: page
permalink: /teaching/
title: teaching
description: Materials for courses you taught. Replace this text with your description.
nav: true
nav: false
nav_order: 6
---

Expand Down
20 changes: 14 additions & 6 deletions assets/js/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,18 @@
// Toggle through light, dark, and system theme settings.
let toggleThemeSetting = () => {
let themeSetting = determineThemeSetting();
if (themeSetting == "system") {
if (themeSetting == "dark") {
setThemeSetting("light");
} else if (themeSetting == "light") {
setThemeSetting("dark");
} else {
setThemeSetting("system");
setThemeSetting("dark");
}
// if (themeSetting == "system") {
// setThemeSetting("light");
// } else if (themeSetting == "light") {
// setThemeSetting("dark");
// } else {
// setThemeSetting("system");
// }
};

// Change the theme setting and apply the theme.
Expand Down Expand Up @@ -209,8 +214,11 @@ let transTheme = () => {
// "system". Default is "system".
let determineThemeSetting = () => {
let themeSetting = localStorage.getItem("theme");
if (themeSetting != "dark" && themeSetting != "light" && themeSetting != "system") {
themeSetting = "system";
// if (themeSetting != "dark" && themeSetting != "light" && themeSetting != "system") {
// themeSetting = "system";
// }
if (themeSetting != "dark" && themeSetting != "light") {
themeSetting = "dark";
}
return themeSetting;
};
Expand Down

0 comments on commit 57aa167

Please sign in to comment.