Official website for Apertus, a fully open foundation model for sovereign AI developed by the Swiss AI Initiative. This is a static website featuring a minimal, research-focused design. It serves as the public face of the Apertus project, providing information about the models, research, documentation, and governance.
See the Code of Conduct for all contributors to the Apertus project.
- Hugo (v0.140+, extended) - Static site generator
- Bootstrap 5 - CSS framework (loaded via CDN)
- Lotus Docs - Hugo theme (customized)
- GitHub Actions - CI/CD deployment to GitHub Pages
Before running locally, ensure you have:
- Go (v1.21 or later, required by Hugo) - Install the latest version
- Hugo (v0.140 or later) - Installation guide
Ubuntu/Debian:
sudo apt install golang-go hugomacOS:
brew install golang hugoWindows:
choco install golang hugo-extendedcd www-apertus
hugo serverThen open http://localhost:1313
-
Install Go (required for Hugo modules):
# Ubuntu - via snap (recommended) sudo snap install go --classic # Verify go version
-
Install Hugo Extended (must be extended version for Sass):
# Ubuntu - download .deb wget https://github.com/gohugoio/hugo/releases/download/v0.142.0/hugo_extended_0.142.0_linux-amd64.deb sudo dpkg -i hugo_extended_0.142.0_linux-amd64.deb # Verify (should show "extended") hugo version
-
Clone and run:
git clone https://github.com/swiss-ai/www-apertus.git cd www-apertus hugo server -
Open your browser: Navigate to http://localhost:1313
The site will automatically reload when you make changes.
"binary with name 'go' not found"
- Install Go:
sudo snap install go --classic
"template for shortcode not found"
- Ensure
layouts/shortcodes/directory exists (not_shortcodes) - Ensure
layouts/partials/directory exists (not_partials)
Theme header/SVG "Layer_1" appearing
- Ensure
layouts/_default/baseof.htmlexists to override the Lotus Docs theme's base template
Hugo modules not downloading
- Run
hugo mod get -uto update modules - Ensure Go is installed and in PATH
# Development server with drafts
hugo server -D
# Development server accessible from other devices
hugo server --bind 0.0.0.0
# Build for production
hugo --gc --minify
# Build with environment
HUGO_ENV=production hugo --gc --minifywww-apertus/
├── archetypes/ # Templates for new content
├── assets/ # Source assets (processed by Hugo)
├── content/ # Markdown content
│ ├── _index.md # Homepage content
│ ├── about.md # About page
│ ├── charter.md # Governance charter
│ ├── documentation.md # Documentation links
│ ├── faq.md # FAQ page
│ ├── get-started.md # Getting started guide
│ └── research.md # Research publications
├── layouts/ # Custom Hugo templates
│ ├── _default/
│ │ ├── baseof.html # Base template (overrides theme)
│ │ └── single.html # Single page template
│ ├── partials/
│ │ ├── navbar.html # Navigation bar
│ │ ├── hero.html # Hero section
│ │ └── head.html # HTML head
│ ├── shortcodes/ # Custom shortcodes
│ │ ├── cards.html # Card grid container
│ │ ├── card.html # Individual card
│ │ ├── columns.html # Multi-column layout
│ │ ├── tabs.html # Tab container
│ │ ├── tab.html # Individual tab
│ │ ├── button.html # Styled button
│ │ └── hero.html # Hero shortcode
│ └── index.html # Homepage layout
├── static/ # Static files (served as-is)
│ ├── favicon.ico
│ └── images/
│ ├── apertvs.svg # Logo mark
├── hugo.toml # Hugo configuration
├── go.mod # Go module dependencies
└── README.md
The site uses a simple color palette defined inline in the templates:
| Purpose | Color | Hex |
|---|---|---|
| Primary (buttons, links) | Light Blue | #49BED8 |
| Accent (details) | Bright Red | #E02D24 |
| Text | Dark Gray | #1a1a1a |
| Muted Text | Gray | #6b7280 |
| Background | White/Light Blue | #ffffff / #e8f7fa |
Edit layouts/partials/navbar.html to modify navigation links.
Edit content/_index.md to update homepage content. The frontmatter controls the hero section:
---
title: "Apertus"
mission: "Open weights, open data, open science"
description: "Your description here..."
hero_primary_label: "Explore Models"
hero_primary_url: "https://huggingface.co/..."
hero_secondary_label: "Read the Paper"
hero_secondary_url: "https://arxiv.org/..."
---The site includes several custom shortcodes for content formatting:
Columns:
{{< columns cols="3" >}}
### Column 1
Content here.
<--->
### Column 2
Content here.
<--->
### Column 3
Content here.
{{< /columns >}}Cards:
{{< cards cols="2" >}}
{{< card title="Card Title" href="/link" >}}
Card description.
{{< /card >}}
{{< /cards >}}Tabs:
{{< tabs name="example" >}}
{{% tab name="tab1" title="First Tab" %}}
Tab content here.
{{% /tab %}}
{{% tab name="tab2" title="Second Tab" %}}
More content.
{{% /tab %}}
{{< /tabs >}}The site is automatically deployed to GitHub Pages via GitHub Actions when changes are pushed to the main branch.
To build the site manually:
hugo --gc --minifyThe generated site will be in the public/ directory.
The deployment workflow is configured in .github/workflows/hugo.yaml. It:
- Installs Hugo and Go
- Builds the site with
hugo --gc --minify - Deploys to GitHub Pages
-
Create a new markdown file in
content/:hugo new docs/getting-started.md
-
Edit the frontmatter and content:
--- title: "Getting Started" description: "How to get started with Apertus" --- Your content here...
-
The page will be available at
/docs/getting-started/
- Fork the repository
- Create a feature branch (
git checkout -b feature/improvement) - Make your changes
- Test locally with
hugo server - Commit your changes (
git commit -am 'Add improvement') - Push to the branch (
git push origin feature/improvement) - Open a Pull Request
This website is licensed under Apache 2.0.