diff --git a/.github/workflows/sync-org-profile-publications.yml b/.github/workflows/sync-org-profile-publications.yml
index f2e7dd9..9a69ce1 100644
--- a/.github/workflows/sync-org-profile-publications.yml
+++ b/.github/workflows/sync-org-profile-publications.yml
@@ -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 }}
diff --git a/_layouts/default.html b/_layouts/default.html
index 224888c..ba6b29a 100644
--- a/_layouts/default.html
+++ b/_layouts/default.html
@@ -151,34 +151,13 @@
});
})();
-
+
diff --git a/_layouts/history.html b/_layouts/history.html
index b9f13fb..db26b26 100644
--- a/_layouts/history.html
+++ b/_layouts/history.html
@@ -130,34 +130,13 @@
})();
-
+
diff --git a/_layouts/join-us.html b/_layouts/join-us.html
index 22f3612..d96a825 100644
--- a/_layouts/join-us.html
+++ b/_layouts/join-us.html
@@ -93,29 +93,13 @@
});
})();
-
+
diff --git a/_layouts/research.html b/_layouts/research.html
index 2d93833..3c6b779 100644
--- a/_layouts/research.html
+++ b/_layouts/research.html
@@ -113,34 +113,13 @@
});
})();
-
+
@@ -376,33 +355,35 @@ Contents
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);
}
diff --git a/_layouts/teaching-course.html b/_layouts/teaching-course.html
index c5ba319..aad04da 100644
--- a/_layouts/teaching-course.html
+++ b/_layouts/teaching-course.html
@@ -5,7 +5,7 @@
- {% if page.title %}{{ page.title }} - {% endif %}{{ site.title }}
+ {% if page.title %}{{ page.title | escape_once }} - {% endif %}{{ site.title | escape_once }}