Skip to content

Commit de96c83

Browse files
committed
feat: website upgrades
1 parent cd62d60 commit de96c83

File tree

9 files changed

+1945
-2
lines changed

9 files changed

+1945
-2
lines changed

_includes/header.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<a href="#main-content" class="skip-nav">Skip to main content</a>
12
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
23
<div class="container">
34
<div style="vertical-align: middle; padding-top: 8px">

_pages/search.html

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,30 @@
1313
title: titles.search
1414
---
1515

16-
<div id="search-results"></div>
16+
<div id="search-results" role="region" aria-live="polite" aria-label="Search Results"></div>
1717

18+
<script src="/static/js/search.js"></script>
1819
<script>
1920
(function () {
21+
// Initialize conference types from Jekyll data
22+
if (typeof initializeConferenceTypes === 'function') {
23+
const types = [
24+
{% for type in site.data.types %}
25+
{ name: "{{ type.name }}", sub: "{{ type.sub }}", color: "{{ type.color }}" }{% unless forloop.last %},{% endunless %}
26+
{% endfor %}
27+
];
28+
initializeConferenceTypes(types);
29+
}
30+
31+
// Set translation strings
32+
if (typeof setSearchTranslations === 'function') {
33+
setSearchTranslations({
34+
noResults: '{% t search.no-results %}',
35+
error: '{% t search.error %}',
36+
loading: 'Loading...',
37+
clickToFilter: 'Click to filter by'
38+
});
39+
}
2040
function displaySearchResults(results, docs) {
2141
var searchResults = document.getElementById('search-results');
2242

index.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
{% include masthead.html url=page.url title=fp_title hook=fp_hook description=fp_description %}
2323

24-
<div class="container">
24+
<div class="container" id="main-content">
2525
<div id="confs">
2626
<div id="coming_confs">
2727
{% assign confs = site.data.conferences | sort: "cfp" | reverse %}
@@ -178,6 +178,10 @@ <h1 id="archive-link"><a href="{% tl archive %}">{% t titles.visit_archive %}</a
178178

179179
});
180180
</script>
181+
182+
<!-- Lazy Loading for Performance -->
183+
<script type="text/javascript" src="{{ "/static/js/lazy-load.js" | prepend:site.baseurl_root }}?t={{site.time | date: '%s'}}"></script>
184+
181185
{% include sneks.html %}
182186
</body>
183187
</html>

0 commit comments

Comments
 (0)