$ show fossasia/fossasia.org
This repository is the official static website for FOSSASIA (fossasia.org), an open-source organization. The site is primarily a collection of static HTML pages styled with Bootstrap 3 and custom CSS themes, with client-side JavaScript for dynamic features like blog feeds, tweet fetching, Instagram integration, Google Maps, and donation forms (Stripe/PayPal). A PHP contact form using the vendored SwiftMailer library handles email submissions. The build pipeline (Travis CI, Python 2.7) runs a sitemap generation script (j2build.py) and an image optimizer (gulp). The codebase is heavily duplicated, with a 'jsbuggy' directory containing near-identical JavaScript files, and over a dozen CSS theme files that differ only in color variables. Dependencies are outdated (Bootstrap 3.1.0, Python 2.7, SwiftMailer ~2009), and external APIs like loklak (for tweets) are no longer functional. The site is effectively a legacy static site with minimal maintainability and no modern build tooling or package management.
The LLM identified 3 files worth highlighting for reuse:
A Python script that crawls local HTML files to generate sitemap.xml and sitemap.html using Jinja2 templates and BeautifulSoup. It is self-contained (only depends on Jinja2 and BeautifulSoup) and can be reused in any static site project that needs to auto-generate a sitemap from existing HTML files.
A standalone PHP contact form handler that uses the vendored SwiftMailer library to send emails via SMTP. It validates input, sanitizes data, and sends a plain-text email. The script is independent of the rest of the codebase and can be extracted and configured for any website requiring a simple contact form.
A lightweight jQuery plugin that implements a tabbed content interface. It toggles visibility of content panels based on tab clicks, supports default active tab, and is fully self-contained (depends only on jQuery). This pattern is reusable across any project needing tabbed navigation.