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
2 changes: 1 addition & 1 deletion .github/workflows/sync-org-profile-publications.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
steps:
- name: Create GitHub App token
id: app-token
uses: actions/create-github-app-token@v1
uses: actions/create-github-app-token@c8f55efbd427e7465d6da1106e7979bc8aaee856 # v1.10.1
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
Expand Down
35 changes: 7 additions & 28 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -151,34 +151,13 @@
});
})();
</script>
<script>
// Check if we're on localhost
if (window.location.hostname === 'localhost' || window.location.hostname === '127.0.0.1') {
// Load Font Awesome stylesheets with improved error handling and version extraction
function loadStylesheet(href) {
const link = document.createElement('link');
link.rel = 'stylesheet';
link.href = href;
link.crossOrigin = 'anonymous';
link.onerror = () => console.error(`Failed to load stylesheet: ${href}`);
document.head.appendChild(link);
return link;
}

const FA_VERSION = '6.7.2'; // Extract version to a constant for easier updates

loadStylesheet(`https://use.fontawesome.com/releases/v${FA_VERSION}/css/solid.css`);
loadStylesheet(`https://use.fontawesome.com/releases/v${FA_VERSION}/css/brands.css`);
loadStylesheet(`https://use.fontawesome.com/releases/v${FA_VERSION}/css/fontawesome.css`);
} else {
// Use Kit for production with defer
var script = document.createElement('script');
script.src = 'https://kit.fontawesome.com/b1cfd9ca75.js';
script.crossOrigin = 'anonymous';
script.defer = true;
document.head.appendChild(script);
}
</script>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css"
integrity="sha512-Evv84Mr4kqVGRNSgIGL/F/aIDqQb7xQ2vcrdIwxfjThSH8CSR7PBEakCr51Ck+w+/U6swU2Im1vVX0SVk9ABhg=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
>

</head>
<body id="top">
Expand Down
35 changes: 7 additions & 28 deletions _layouts/history.html
Original file line number Diff line number Diff line change
Expand Up @@ -130,34 +130,13 @@
})();
</script>

<script>
// Check if we're on localhost
if (window.location.hostname === 'localhost' || window.location.hostname === '127.0.0.1') {
// Load Font Awesome stylesheets with improved error handling and version extraction
function loadStylesheet(href) {
const link = document.createElement('link');
link.rel = 'stylesheet';
link.href = href;
link.crossOrigin = 'anonymous';
link.onerror = () => console.error(`Failed to load stylesheet: ${href}`);
document.head.appendChild(link);
return link;
}

const FA_VERSION = '6.7.2'; // Extract version to a constant for easier updates

loadStylesheet(`https://use.fontawesome.com/releases/v${FA_VERSION}/css/solid.css`);
loadStylesheet(`https://use.fontawesome.com/releases/v${FA_VERSION}/css/brands.css`);
loadStylesheet(`https://use.fontawesome.com/releases/v${FA_VERSION}/css/fontawesome.css`);
} else {
// Use Kit for production with defer
var script = document.createElement('script');
script.src = 'https://kit.fontawesome.com/b1cfd9ca75.js';
script.crossOrigin = 'anonymous';
script.defer = true;
document.head.appendChild(script);
}
</script>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css"
integrity="sha512-Evv84Mr4kqVGRNSgIGL/F/aIDqQb7xQ2vcrdIwxfjThSH8CSR7PBEakCr51Ck+w+/U6swU2Im1vVX0SVk9ABhg=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
>
</head>
<body id="top">

Expand Down
30 changes: 7 additions & 23 deletions _layouts/join-us.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,29 +93,13 @@
});
})();
</script>
<script>
if (window.location.hostname === 'localhost' || window.location.hostname === '127.0.0.1') {
function loadStylesheet(href) {
const link = document.createElement('link');
link.rel = 'stylesheet';
link.href = href;
link.crossOrigin = 'anonymous';
link.onerror = () => console.error(`Failed to load stylesheet: ${href}`);
document.head.appendChild(link);
return link;
}
const FA_VERSION = '6.7.2';
loadStylesheet(`https://use.fontawesome.com/releases/v${FA_VERSION}/css/solid.css`);
loadStylesheet(`https://use.fontawesome.com/releases/v${FA_VERSION}/css/brands.css`);
loadStylesheet(`https://use.fontawesome.com/releases/v${FA_VERSION}/css/fontawesome.css`);
} else {
var script = document.createElement('script');
script.src = 'https://kit.fontawesome.com/b1cfd9ca75.js';
script.crossOrigin = 'anonymous';
script.defer = true;
document.head.appendChild(script);
}
</script>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css"
integrity="sha512-Evv84Mr4kqVGRNSgIGL/F/aIDqQb7xQ2vcrdIwxfjThSH8CSR7PBEakCr51Ck+w+/U6swU2Im1vVX0SVk9ABhg=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
>
</head>
<body id="top">
<div id="preloader"><div id="loader"></div></div>
Expand Down
49 changes: 15 additions & 34 deletions _layouts/research.html
Original file line number Diff line number Diff line change
Expand Up @@ -113,34 +113,13 @@
});
})();
</script>
<script>
// Check if we're on localhost
if (window.location.hostname === 'localhost' || window.location.hostname === '127.0.0.1') {
// Load Font Awesome stylesheets with improved error handling and version extraction
function loadStylesheet(href) {
const link = document.createElement('link');
link.rel = 'stylesheet';
link.href = href;
link.crossOrigin = 'anonymous';
link.onerror = () => console.error(`Failed to load stylesheet: ${href}`);
document.head.appendChild(link);
return link;
}

const FA_VERSION = '6.7.2'; // Extract version to a constant for easier updates

loadStylesheet(`https://use.fontawesome.com/releases/v${FA_VERSION}/css/solid.css`);
loadStylesheet(`https://use.fontawesome.com/releases/v${FA_VERSION}/css/brands.css`);
loadStylesheet(`https://use.fontawesome.com/releases/v${FA_VERSION}/css/fontawesome.css`);
} else {
// Use Kit for production with defer
var script = document.createElement('script');
script.src = 'https://kit.fontawesome.com/b1cfd9ca75.js';
script.crossOrigin = 'anonymous';
script.defer = true;
document.head.appendChild(script);
}
</script>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css"
integrity="sha512-Evv84Mr4kqVGRNSgIGL/F/aIDqQb7xQ2vcrdIwxfjThSH8CSR7PBEakCr51Ck+w+/U6swU2Im1vVX0SVk9ABhg=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
>
</head>
<body id="top">

Expand Down Expand Up @@ -376,33 +355,35 @@ <h3>Contents</h3>
const badgeContainer = document.createElement('span');
badgeContainer.className = 'badge-container';

// Get the text content before any badges
let textContent = '';
// Preserve non-badge content without reparsing it as HTML
const nonBadgeNodes = [];
let hasNonBadgeContent = false;

// First pass: collect all non-badge content
for (let node of p.childNodes) {
if (node.nodeType === 3) { // Text node
if (node.textContent.trim()) {
textContent += node.textContent;
nonBadgeNodes.push(document.createTextNode(node.textContent));
hasNonBadgeContent = true;
}
} else if (node.nodeType === 1) { // Element node
const href = node.getAttribute('href');
if (!href || (!href.includes('arxiv.org') && !href.includes('github.com') && !href.includes('blogs.comphy-lab.org'))) {
textContent += node.outerHTML;
nonBadgeNodes.push(node.cloneNode(true));
hasNonBadgeContent = true;
}
}
}

// Clear the paragraph
p.innerHTML = '';
p.replaceChildren();

// Add back the text content if it exists
if (hasNonBadgeContent) {
const textSpan = document.createElement('span');
textSpan.innerHTML = textContent.trim();
nonBadgeNodes.forEach((node) => {
textSpan.appendChild(node);
});
p.appendChild(textSpan);
}

Expand Down
49 changes: 14 additions & 35 deletions _layouts/teaching-course.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="base-url" content="{{ site.baseurl }}">
<title>{% if page.title %}{{ page.title }} - {% endif %}{{ site.title }}</title>
<title>{% if page.title %}{{ page.title | escape_once }} - {% endif %}{{ site.title | escape_once }}</title>

<!-- Critical CSS for fastest paint -->
<style>
Expand Down Expand Up @@ -36,10 +36,10 @@
<link rel="mask-icon" href="/assets/favicon/safari-pinned-tab.svg" color="#5bbad5">

<!-- SEO Meta Tags -->
<meta name="description" content="{% if page.description %}{{ page.description }}{% else %}Detailed course information and materials from the Computational Multiphase Physics Laboratory{% endif %}">
<meta name="description" content="{% if page.description %}{{ page.description | escape_once }}{% else %}Detailed course information and materials from the Computational Multiphase Physics Laboratory{% endif %}">
<meta name="author" content="CoMPhy Lab">
<meta name="robots" content="index, follow">
<meta name="keywords" content="{% if page.keywords %}{{ page.keywords }}{% else %}computational physics course, course materials, lectures, tutorials, multiphase physics education{% endif %}">
<meta name="keywords" content="{% if page.keywords %}{{ page.keywords | escape_once }}{% else %}computational physics course, course materials, lectures, tutorials, multiphase physics education{% endif %}">

<!-- Font dependencies with font-display: swap -->
<style>
Expand Down Expand Up @@ -67,14 +67,14 @@
{
"@context": "https://schema.org",
"@type": "Course",
"name": "{% if page.title %}{{ page.title }}{% else %}Course - Computational Multiphase Physics{% endif %}",
"description": "{% if page.description %}{{ page.description }}{% else %}Detailed course information and materials{% endif %}",
"name": {{ page.title | default: "Course - Computational Multiphase Physics" | jsonify }},
"description": {{ page.description | default: "Detailed course information and materials" | jsonify }},
"provider": {
"@type": "Organization",
"name": "Computational Multiphase Physics Laboratory",
"sameAs": "{{ site.url }}"
"sameAs": {{ site.url | jsonify }}
},
"url": "{{ site.url }}{{ page.url }}"
"url": {{ site.url | append: page.url | jsonify }}
}
</script>

Expand Down Expand Up @@ -134,34 +134,13 @@
document.documentElement.classList.remove('no-js');
document.documentElement.classList.add('js');
</script>
<script>
// Check if we're on localhost
if (window.location.hostname === 'localhost' || window.location.hostname === '127.0.0.1') {
// Load Font Awesome stylesheets with improved error handling and version extraction
function loadStylesheet(href) {
const link = document.createElement('link');
link.rel = 'stylesheet';
link.href = href;
link.crossOrigin = 'anonymous';
link.onerror = () => console.error(`Failed to load stylesheet: ${href}`);
document.head.appendChild(link);
return link;
}

const FA_VERSION = '6.7.2'; // Extract version to a constant for easier updates

loadStylesheet(`https://use.fontawesome.com/releases/v${FA_VERSION}/css/solid.css`);
loadStylesheet(`https://use.fontawesome.com/releases/v${FA_VERSION}/css/brands.css`);
loadStylesheet(`https://use.fontawesome.com/releases/v${FA_VERSION}/css/fontawesome.css`);
} else {
// Use Kit for production with defer
var script = document.createElement('script');
script.src = 'https://kit.fontawesome.com/b1cfd9ca75.js';
script.crossOrigin = 'anonymous';
script.defer = true;
document.head.appendChild(script);
}
</script>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css"
integrity="sha512-Evv84Mr4kqVGRNSgIGL/F/aIDqQb7xQ2vcrdIwxfjThSH8CSR7PBEakCr51Ck+w+/U6swU2Im1vVX0SVk9ABhg=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
>
</head>
<body id="top">

Expand Down
35 changes: 7 additions & 28 deletions _layouts/teaching.html
Original file line number Diff line number Diff line change
Expand Up @@ -130,34 +130,13 @@
})();
</script>

<script>
// Check if we're on localhost
if (window.location.hostname === 'localhost' || window.location.hostname === '127.0.0.1') {
// Load Font Awesome stylesheets with improved error handling and version extraction
function loadStylesheet(href) {
const link = document.createElement('link');
link.rel = 'stylesheet';
link.href = href;
link.crossOrigin = 'anonymous';
link.onerror = () => console.error(`Failed to load stylesheet: ${href}`);
document.head.appendChild(link);
return link;
}

const FA_VERSION = '6.7.2'; // Extract version to a constant for easier updates

loadStylesheet(`https://use.fontawesome.com/releases/v${FA_VERSION}/css/solid.css`);
loadStylesheet(`https://use.fontawesome.com/releases/v${FA_VERSION}/css/brands.css`);
loadStylesheet(`https://use.fontawesome.com/releases/v${FA_VERSION}/css/fontawesome.css`);
} else {
// Use Kit for production with defer
var script = document.createElement('script');
script.src = 'https://kit.fontawesome.com/b1cfd9ca75.js';
script.crossOrigin = 'anonymous';
script.defer = true;
document.head.appendChild(script);
}
</script>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css"
integrity="sha512-Evv84Mr4kqVGRNSgIGL/F/aIDqQb7xQ2vcrdIwxfjThSH8CSR7PBEakCr51Ck+w+/U6swU2Im1vVX0SVk9ABhg=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
>
</head>
<body id="top">

Expand Down
35 changes: 7 additions & 28 deletions _layouts/team.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,34 +123,13 @@
});
})();
</script>
<script>
// Check if we're on localhost
if (window.location.hostname === 'localhost' || window.location.hostname === '127.0.0.1') {
// Load Font Awesome stylesheets with improved error handling and version extraction
function loadStylesheet(href) {
const link = document.createElement('link');
link.rel = 'stylesheet';
link.href = href;
link.crossOrigin = 'anonymous';
link.onerror = () => console.error(`Failed to load stylesheet: ${href}`);
document.head.appendChild(link);
return link;
}

const FA_VERSION = '6.7.2'; // Extract version to a constant for easier updates

loadStylesheet(`https://use.fontawesome.com/releases/v${FA_VERSION}/css/solid.css`);
loadStylesheet(`https://use.fontawesome.com/releases/v${FA_VERSION}/css/brands.css`);
loadStylesheet(`https://use.fontawesome.com/releases/v${FA_VERSION}/css/fontawesome.css`);
} else {
// Use Kit for production with defer
var script = document.createElement('script');
script.src = 'https://kit.fontawesome.com/b1cfd9ca75.js';
script.crossOrigin = 'anonymous';
script.defer = true;
document.head.appendChild(script);
}
</script>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css"
integrity="sha512-Evv84Mr4kqVGRNSgIGL/F/aIDqQb7xQ2vcrdIwxfjThSH8CSR7PBEakCr51Ck+w+/U6swU2Im1vVX0SVk9ABhg=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
>
</head>
<body id="top" class="team-page-body">

Expand Down
2 changes: 1 addition & 1 deletion _research/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ title: Research
[![GitHub](https://img.shields.io/badge/GitHub-100000?style=flat-square&logo=github&logoColor=white)](https://github.com/VatsalSy/Impact-forces-of-water-drops-falling-on-superhydrophobic-surfaces.git)
[![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)

![Parameter space of drop impact](https://www.dropbox.com/scl/fi/rwrl444r73nayhw1jl4j2/SL2-theory_num.png?rlkey=ekywyjaui2n79djl4qtgevegn&raw=1){: width="75%" .center-block style="display: block; margin-left: auto; margin-right: auto;"}
![Parameter space of drop impact](/assets/images/research/drop-impact-prl.png){: width="75%" .center-block style="display: block; margin-left: auto; margin-right: auto;"}

<h3 id="14">[14] <strong>Sanjay, V.</strong>, Zhang, B., Lv, C., & Lohse, D. The role of viscosity on drop impact forces on non-wetting surfaces. J. Fluid Mech., 1004, A6 (2025).</h3>

Expand Down
Loading
Loading