Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions _includes/theme-init.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<script>
(function() {
let saved = null;
try {
const candidate = localStorage.getItem('theme');
if (candidate === 'light' || candidate === 'dark') {
saved = candidate;
}
} catch (e) {
console.warn('Theme init: cannot access localStorage', e);
}
const theme = saved
?? (window.matchMedia?.('(prefers-color-scheme: dark)')?.matches ? 'dark' : 'light');
document.documentElement.setAttribute('data-theme', theme);
})();
</script>
1 change: 1 addition & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
{% include theme-init.html %}
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="base-url" content="{{ site.baseurl }}">
Expand Down
1 change: 1 addition & 0 deletions _layouts/research.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
{% include theme-init.html %}
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="base-url" content="{{ site.baseurl }}">
Expand Down
3 changes: 2 additions & 1 deletion _layouts/teaching-course.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
{% include theme-init.html %}
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="base-url" content="{{ site.baseurl }}">
Expand Down Expand Up @@ -317,4 +318,4 @@
</script>

</body>
</html>
</html>
1 change: 1 addition & 0 deletions _layouts/teaching.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
{% include theme-init.html %}
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="base-url" content="{{ site.baseurl }}">
Expand Down
1 change: 1 addition & 0 deletions _layouts/team.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
{% include theme-init.html %}
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="base-url" content="{{ site.baseurl }}">
Expand Down
4 changes: 2 additions & 2 deletions _research/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ title: Research

<h3 id="15">[15] <strong>Sanjay, V.</strong>, & Lohse, D. Unifying theory of scaling in drop impact: Forces & maximum spreading diameter. Phys. Rev. Lett., 134, 104003 (2025).</h3>

<tags><span>Drops</span><span>Dissipative anomaly</span><span>Superamphiphobic-surfaces</span><span>Impact forces</span><span>Featured</span></tags>
<tags><span>Drops</span><span>Dissipative anomaly</span><span>Superamphiphobic-surfaces</span><span>Impact forces</span></tags>

[![PRL](https://img.shields.io/static/v1.svg?style=flat-square&label=PRL&message=OA&color=orange)](https://doi.org/10.1103/PhysRevLett.134.104003)
[![arXiv](https://img.shields.io/static/v1.svg?style=flat-square&label=arXiv&message=2408.12714&color=green)](https://arxiv.org/abs/2408.12714)
Expand Down Expand Up @@ -124,7 +124,7 @@ title: Research

<h3 id="11">[11] <strong>Sanjay, V.</strong>, Chantelot, P., & Lohse, D. When does an impacting drop stop bouncing? J. Fluid Mech., 958, A26 (2023).</h3>

<tags><span>Drops</span><span>Bouncing</span><span>Dissipative anomaly</span></tags>
<tags><span>Drops</span><span>Bouncing</span><span>Dissipative anomaly</span><span>Featured</span></tags>

[![JFM](https://img.shields.io/static/v1.svg?style=flat-square&label=JFM&message=OA&color=orange)](https://doi.org/10.1017/jfm.2023.55)
[![Blog](https://img.shields.io/badge/Blog-Coming%20Soon-yellow?style=flat-square&logo=obsidian&logoColor=white)](https://blogs.comphy-lab.org/0_ToDo-Blog-public)
Expand Down