No description
  • HTML 55.3%
  • CSS 36.3%
  • JavaScript 8.4%
Find a file
2026-01-04 01:07:50 -05:00
layouts site update 2026-01-04 00:50:23 -05:00
static site update 2026-01-04 01:07:50 -05:00
.gitignore Going live - perfect can't be the enemy of good 2025-12-13 16:07:26 -05:00
CONTRIBUTING.md Going live - perfect can't be the enemy of good 2025-12-13 16:07:26 -05:00
ICONS_SETUP.md Going live - perfect can't be the enemy of good 2025-12-13 16:07:26 -05:00
LICENSE Going live - perfect can't be the enemy of good 2025-12-13 16:07:26 -05:00
Pagespeed.png update 2025-12-13 17:06:11 -05:00
Pagespeed_old.png update 2025-12-13 17:06:11 -05:00
PUBLISHING.md Going live - perfect can't be the enemy of good 2025-12-13 16:07:26 -05:00
README.md update 2025-12-13 17:06:49 -05:00
Screenshot.png site update 2026-01-03 21:08:01 -05:00
ScreenshotLast.png site update 2026-01-03 21:08:01 -05:00
ScreenshotOld.png update 2025-12-13 17:06:11 -05:00
ScreenshotOld1.png Major fix 2025-12-19 22:25:36 -05:00
theme.toml Going live - perfect can't be the enemy of good 2025-12-13 16:07:26 -05:00

Salesforce Lighting Hugo Theme

A Hugo theme based on the Salesforce Lightning Design System.

Theme Preview

Performance

This theme is optimized for performance and scores 98 out of 100 on Google PageSpeed Insights.

PageSpeed Score

Features

  • 🎨 Built with Salesforce Lightning Design System (SLDS) components
  • 📱 Fully responsive design that works on all devices
  • 🎯 Clean, modern Salesforce-inspired UI
  • 📝 Support for blog posts, categories, and tags
  • ⚙️ Highly customizable through Hugo configuration
  • 🚀 Fast and lightweight
  • Accessible and semantic HTML

Installation

cd your-hugo-site
git submodule add https://github.com/JHenzi/salesforce-lightning-hugo-theme.git themes/salesforce-lighting

As a Clone

cd your-hugo-site/themes
git clone https://github.com/JHenzi/salesforce-lightning-hugo-theme.git salesforce-lighting

As a Hugo Module

Note: This requires the theme to be set up as a Hugo module. For now, use Git submodule or clone method.

# If configured as a module:
hugo mod get github.com/JHenzi/salesforce-lightning-hugo-theme

Then set the theme in your config.yml:

theme: salesforce-lighting

Configuration

The theme supports all standard Hugo configuration options. Key parameters include:

  • mainSections: List of content sections to display on the homepage (default: ["posts"])
  • ShowReadingTime: Show reading time for posts
  • ShowShareButtons: Show social sharing buttons
  • ShowPostNavLinks: Show previous/next post navigation
  • homeInfoParams: Homepage introduction content

SLDS Integration

The theme uses the Salesforce Lightning Design System via CDN. The CSS is automatically loaded from:

https://cdn.jsdelivr.net/npm/@salesforce-ux/design-system@2.20.0/assets/styles/salesforce-lightning-design-system.min.css

Customization

Custom CSS

Add your custom styles to themes/salesforce-lighting/static/css/custom.css

Custom JavaScript

Add your custom scripts to themes/salesforce-lighting/static/js/custom.js

Icons

The theme references SLDS icons. For production use, you may want to:

  1. Download the SLDS icon sprite files
  2. Place them in themes/salesforce-lighting/static/assets/icons/
  3. Update icon references in templates to use local paths

Layouts

  • layouts/_default/baseof.html - Base template
  • layouts/_default/index.html - Homepage
  • layouts/_default/list.html - List pages (categories, tags, etc.)
  • layouts/_default/single.html - Single post/page
  • layouts/404.html - 404 error page

Partials

  • partials/head.html - HTML head section
  • partials/header.html - Site header/navigation
  • partials/footer.html - Site footer
  • partials/post-card.html - Post card component
  • partials/scripts.html - JavaScript includes

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Issues

If you encounter any problems or have suggestions, please open an issue.

License

This project is open source and available under the MIT License.

Credits

Author

Joseph Henzi

Acknowledgments

  • Thanks to Salesforce for creating the Lightning Design System
  • Inspired by the Hugo community and their amazing themes