Skip to content

Commit 3ef0b55

Browse files
committed
Fix service worker registration path and improve testimonials formatting
- Fix service worker registration path from '/sw.js' to '/struct/sw.js' for proper GitHub Pages deployment - Improve code formatting in testimonials section with better line breaks and consistent quotes - Update arrow function syntax for better consistency
1 parent 4d6a1b1 commit 3ef0b55

2 files changed

Lines changed: 20 additions & 14 deletions

File tree

site/js/advanced.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ class StructSite {
413413

414414
// Initialize service worker if supported
415415
if ('serviceWorker' in navigator) {
416-
navigator.serviceWorker.register('/sw.js').catch(err => {
416+
navigator.serviceWorker.register('/struct/sw.js').catch((err) => {
417417
console.log('ServiceWorker registration failed:', err);
418418
});
419419
}

site/js/phase3.js

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -757,23 +757,29 @@ variables:
757757
createTestimonials() {
758758
const testimonials = [
759759
{
760-
content: "STRUCT has completely transformed how we scaffold new projects. What used to take hours of manual setup now takes minutes. The YAML configuration is intuitive and the template system is incredibly powerful.",
761-
author: "Sarah Chen",
762-
role: "Senior DevOps Engineer",
763-
avatar: "https://images.unsplash.com/photo-1494790108755-2616b612b5bc?w=100&h=100&fit=crop&crop=face"
760+
content:
761+
'STRUCT has completely transformed how we scaffold new projects. What used to take hours of manual setup now takes minutes. The YAML configuration is intuitive and the template system is incredibly powerful.',
762+
author: 'Sarah Chen',
763+
role: 'Senior DevOps Engineer',
764+
avatar:
765+
'https://images.unsplash.com/photo-1531746020798-e6953c6e8e04?w=100&h=100&fit=crop&crop=face',
764766
},
765767
{
766-
content: "The best project structure generator I've used. The ability to fetch content from remote sources and the Jinja2 templating makes it perfect for creating consistent, enterprise-ready project layouts.",
767-
author: "Marcus Rodriguez",
768-
role: "Platform Architect",
769-
avatar: "https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?w=100&h=100&fit=crop&crop=face"
768+
content:
769+
"The best project structure generator I've used. The ability to fetch content from remote sources and the Jinja2 templating makes it perfect for creating consistent, enterprise-ready project layouts.",
770+
author: 'Marcus Rodriguez',
771+
role: 'Platform Architect',
772+
avatar:
773+
'https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?w=100&h=100&fit=crop&crop=face',
770774
},
771775
{
772-
content: "STRUCT's flexibility is unmatched. We use it for everything from microservices to Terraform modules. The hook system allows us to integrate it perfectly into our CI/CD pipeline.",
773-
author: "Alex Thompson",
774-
role: "Lead Developer",
775-
avatar: "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=100&h=100&fit=crop&crop=face"
776-
}
776+
content:
777+
"STRUCT's flexibility is unmatched. We use it for everything from microservices to Terraform modules. The hook system allows us to integrate it perfectly into our CI/CD pipeline.",
778+
author: 'Alex Thompson',
779+
role: 'Lead Developer',
780+
avatar:
781+
'https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=100&h=100&fit=crop&crop=face',
782+
},
777783
];
778784

779785
const testimonialsGrid = document.querySelector('#testimonials .testimonials-grid');

0 commit comments

Comments
 (0)