forked from e2c/e2c-how
2.8 KiB
2.8 KiB
Exit to Community Hugo Site
This is a Hugo static site that migrated content from a Notion database to create the Exit to Community documentation site.
Project Overview
The site documents case studies, legal snippets, and resources related to "Exit to Community" - the practice of converting startups into community-owned cooperatives.
Key Technical Details
Site Structure
- Hugo static site generator with custom layouts
- No CMS - Decap CMS was removed due to login issues
- Content in Markdown with YAML frontmatter
- Custom CSS styling with E2C yellow branding (#F4D03F)
Content Types
- Case Studies (
/content/case-studies/) - 24 case studies with logos and descriptions - Legal Snippets (
/content/legal-snippets/) - Legal documents and frameworks - Resources (
/content/resources/) - Media, education, and primer content - Main Pages - Homepage, contact, add-your-story
Important Files
/layouts/_default/baseof.html- Main template with CSS and header/footer/layouts/_default/list.html- Card layout for case studies and other listings/layouts/_default/single.html- Individual page template with logo display/layouts/index.html- Homepage template (prevents auto-generated cards)/static/img/logos/- Case study logos (64px on cards, 120px on detail pages)
Styling Notes
- Uses Space Grotesk font from Google Fonts
- Yellow hero section with ribbon background header
- Card-based layout with hover effects
- Responsive design with mobile breakpoints
- Case study logos have white background with padding and borders
Content Management
- All content files have clean YAML frontmatter (title first, logical ordering)
- Case studies include
image: /img/logos/[filename]for logos - Descriptions are full-length (not truncated) on listing pages
- No bold formatting in markdown headers
- Tags are used for categorization (no separate categories field)
Build/Test Commands
hugo server -D- Development serverhugo- Build static site- No specific linting commands identified yet
Recent Work Completed
- Migrated all content from Notion exports
- Added ribbon background to header
- Cleaned up content file structure for human readability
- Added case study logos from external directory
- Fixed layout issues and duplicate content problems
- Removed Decap CMS system
- Implemented responsive card layouts with proper logo sizing
Future Considerations
- May need to add linting/typecheck commands when identified
- Content updates should maintain the clean YAML structure
- New case studies should follow the established pattern with logos
- Consider adding search functionality if the content grows significantly
External Dependencies
- Hugo static site generator
- Google Fonts (Space Grotesk)
- No external CMS or database dependencies