- HTML 55.3%
- CSS 36.3%
- JavaScript 8.4%
| layouts | ||
| static | ||
| .gitignore | ||
| CONTRIBUTING.md | ||
| ICONS_SETUP.md | ||
| LICENSE | ||
| Pagespeed.png | ||
| Pagespeed_old.png | ||
| PUBLISHING.md | ||
| README.md | ||
| Screenshot.png | ||
| ScreenshotLast.png | ||
| ScreenshotOld.png | ||
| ScreenshotOld1.png | ||
| theme.toml | ||
Salesforce Lighting Hugo Theme
A Hugo theme based on the Salesforce Lightning Design System.
Performance
This theme is optimized for performance and scores 98 out of 100 on Google PageSpeed Insights.
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
As a Git Submodule (Recommended)
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 postsShowShareButtons: Show social sharing buttonsShowPostNavLinks: Show previous/next post navigationhomeInfoParams: 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:
- Download the SLDS icon sprite files
- Place them in
themes/salesforce-lighting/static/assets/icons/ - Update icon references in templates to use local paths
Layouts
layouts/_default/baseof.html- Base templatelayouts/_default/index.html- Homepagelayouts/_default/list.html- List pages (categories, tags, etc.)layouts/_default/single.html- Single post/pagelayouts/404.html- 404 error page
Partials
partials/head.html- HTML head sectionpartials/header.html- Site header/navigationpartials/footer.html- Site footerpartials/post-card.html- Post card componentpartials/scripts.html- JavaScript includes
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - 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
- Built with Hugo
- Styled with Salesforce Lightning Design System
- Icons from Salesforce Lightning Design System Icons
Author
Joseph Henzi
- GitHub: @JHenzi
- Website: Salesforce Joe
Acknowledgments
- Thanks to Salesforce for creating the Lightning Design System
- Inspired by the Hugo community and their amazing themes

