Warning
ospo-hugo-theme is under development and potentially unstable.
This is a Hugo theme for Open Source Program Office (ospo) portals. Our aim is to help you get a working ospo site up and running as easily as possible, so you can concentrate on creating great content for your community.
- Software Catalog: Inventory of the open-source projects used within your organization
- Projects: List of projects developed and maintained by your organization
- Insights: Open Source Health reports for your projects
- Docs: Technical documentation
Hugo offers multiple options for using the themes, all of which are supported.
- Pre-requisite: Hugo's command for module management require that the Go programming language is installed on your system. Check whether
gois already installed:
go versionIf the go language is not installed, follow the instructions on the Go website download page.
- Initialize your site as a Hugo module:
hugo mod init github.com/<your_user>/<your-project>- Import the theme:
[module]
[[module.imports]]
path = 'github.com/ospo-ch/ospo-hugo-theme'Inside the folder of your Hugo site, run:
git submodule add https://github.com/ospo-ch/ospo-hugo-theme.git themes/ospoThis downloads the repository from GitHub and puts the content in your themes folder as a git sub-module.
To update your theme to future versions:
git submodule update --remote --mergeInside the folder of your Hugo site, run:
git clone https://github.com/ospo-ch/ospo-hugo-theme themes/ospoThis downloads the repository from GitHub and puts the content in your themes folder.
To update the theme to future versions:
cd themes/ospo
git pullCreate a set of favicons via https://cthedot.de/icongen/ or another tool and put them in your site project's static/favicons directory. This will override the default favicons for the theme.
For special requirements, create your own layout/partials/head/favicons.html file.
To customize your project look and feel you can provide your own version of the theme placeholder files and place them in the assets/scss/ folder:
_variables_project.scss: override the theme variables_styles_project.scss: add custom SCSS styles or override the theme's styles
To preview the bundled example site locally, install Hugo (extended) and run:
./debug.shThis starts hugo server against exampleSite/ with the theme mounted from the repository root, served at http://localhost:1313/.
To contribute, please follow the guidelines outlined in our CONTRIBUTING.md and our Code of Conduct.
This project couldn't be possible without the amazing open-source work from the community, especially: