This repository provides a template for creating QGIS User Group websites:
π Hosted as subdomains of qgis.org (e.g.,yourgroup.qgis.org)Here you'll find everything you need to build, develop, and customize your User Group Website.
Table of Contents
This template is designed for QGIS User Groups to quickly set up a professional website with:
- Home page - Welcome visitors and introduce your group
- Events page - List upcoming and past events
- Who we are page - Introduce your team and members
- Rules page - Community guidelines and code of conduct
The template uses Hugo static site generator with a clean, responsive design that maintains consistency with the QGIS ecosystem.
- Hugo (version 0.139.0 or higher)
- Git
- A text editor or an IDE (eg. VSCode)
-
Clone this repository:
git clone https://github.com/QGIS/QGIS-User-Group-Website.git cd QGIS-User-Group-Website -
Run the development server:
make hugo-run-dev
Or directly with Hugo:
hugo server --config config.toml,config/config.dev.toml
-
View your site: Open your browser to
http://localhost:1313
To set up a website for your QGIS User Group:
-
Contact the QGIS Website Team:
- Open an issue in this repository or
- Email the QGIS website team at [email protected] and [email protected]
- Specify your user group name and preferred subdomain (e.g.,
sweden.qgis.org)
-
Provide Information:
- User Group name
- Country/region
- Preferred subdomain name
- Contact person(s) with GitHub usernames
The QGIS team will:
- Create a dedicated branch for your user group (e.g.,
usergroup/sweden) - Set up branch protection rules
- Grant you write permissions to your branch
- Configure GitHub Actions for automated deployment
Once your branch is ready:
-
Clone and checkout your branch:
git clone https://github.com/qgis/QGIS-User-Group-Website.git cd QGIS-User-Group-Website git checkout usergroup/your-group-name -
Update configuration:
- Edit
config.tomlwith your group details - Update the
baseURLto match your subdomain - Customize the title and other settings
- Edit
-
Customize content:
- Edit content pages in the
content/directory - Add your team information
- Update events and rules
- Replace placeholder images
- Edit content pages in the
-
Commit and push:
git add . git commit -m "Initial customization for [Your Group Name]" git push origin usergroup/your-group-name
After customizing your site:
-
Request subdomain deployment:
- Contact the QGIS team to request deployment
- Provide your desired subdomain (e.g.,
sweden.qgis.org)
-
The QGIS team will:
- Configure the subdomain on qgis.org
- Set up automated deployment from your branch
- Provide you with the live URL
You have full control over your branch:
- Push changes: Changes pushed to your branch will automatically deploy
- Collaborate: Add other team members as collaborators on your branch
- Keep updated: Periodically merge updates from the main template branch to get new features
QGIS-User-Group-Website/
βββ βοΈ config/ # Hugo configuration files
βββ π content/ # Markdown content files (pages, posts)
βββ πΌοΈ img/ # Images files used by this README
βββ π§© layouts/ # Hugo templates and partials
βββ π¦ public/ # Generated site output (after `hugo` build)
βββ ποΈ resources/ # Hugo-generated resources (e.g., minified assets)
βββ π static/ # Static files served as-is (e.g., favicon, images)
βββ π¨ themes/ # Hugo themes
βββ βοΈ config.toml # Main Hugo configuration file
βββ π€ CONTRIBUTING.md # Contribution guidelines
βββ π LICENSE # Project license
βββ βοΈ Makefile # Build/Deployment automation commands
βββ π README.md # This file
All content is in the content/ directory:
_index.md- Home pageevents.md- Events listingwho-we-are.md- Team and member informationrules.md- Community guidelines
You are free to edit or add new files as needed to customize your content. The files use Markdown with Hugo shortcodes.
Edit config.toml to customize:
- Site title and URL
- Menu structure
- Colors and branding
- Social media links
- Analytics settings
Edit the themes/hugo-bulma-blocks-theme/layouts/partials/menu.html file to customize:
logo-icon: The logo on the main navigation menu (by default: QGIS logo)logo-link: The link where the logo points to (by default: qgis.org). You can set it to/if you want to point the logo the homepage of your user group website.second-menu-prefix: The link of this user group website (eg. https://sweden.qgis.org)secondary-menu-config: The link to thenavigation.jsonused for the mobile menu (See below). For example: https://raw.githubusercontent.com/qgis/QGIS-User-Group-Website/usergroup_switzerland/static/config/navigation.json
Edit the static/config/navigation.json file to customize the secondary menu on mobile. This file should be updated whenever you modify your menu entries.
- Place images in
static/img/orcontent/ - Update hero images in page front matter
- Replace the logo files
- Add your own favicon
The template uses the hugo-bulma-blocks-theme which provides:
- Responsive design
- Clean, modern look
- Customizable colors
- Reusable content blocks
Colors and fonts can be customized in config.toml under [params].
This project is licensed under the MIT License. See the LICENSE file for details.
Please refer to the Nix section in CONTRIBUTING.md.
We welcome contributions to improve this template!
- For template improvements: Submit PRs to the main branch
- For your user group site: Work on your dedicated branch
Please read the CONTRIBUTING.md for guidelines.
- Template questions: Open an issue in this repository
- General QGIS questions: Visit qgis.org
- Tim Sutton β Original QGIS Website author
- Lova Andriarimalala β Template developer
- QGIS Contributors β Community contributors
Made with β€οΈ by the QGIS Contributors.
