Project front page
Release badges, install commands, and binary downloads for software project landing pages.
Project front page
Install, download, release
The project front page shortcodes turn a homepage into a software landing page: release shows the current version, install renders copyable install commands, and downloads lists binary artifacts.
# Release badge
Latest release v0.1.0May 2026Changelog
The release shortcode renders the latest version with an optional release date and changelog link. The version, date, label, and href are plain strings — they are HTML-escaped, so author input cannot inject markup.
| Param | Type | Required | Description |
|---|---|---|---|
version |
string | yes | Version string shown in the badge. Build fails if omitted. |
date |
string | no | Human-readable release date. |
href |
string | no | Changelog URL. http(s) and root-relative links are meaningful; unknown schemes are escaped. |
label |
string | no | Overrides the localized “Latest release” label. |
# Install commands
A single command needs no wrapper:
Install
brew install symblix
The install shortcode renders the command body as a copyable block. The command text is preserved exactly — interior whitespace, newlines, pipes, ampersands, and quotes survive — and the block carries the standard copy-to-clipboard contract as a JavaScript enhancement.
| Param | Type | Required | Description |
|---|---|---|---|
label |
string | no | Heading for the command block. Defaults to the localized “Install” label. |
id |
string | no | Anchor id for the container. |
class |
string | no | Extra classes for the container. |
Multi-line commands keep their interior indentation:
From script
curl -fsSL https://example.com/install.sh | sh
&& symblix --version
Special characters are rendered literally — redirects, comparisons, and HTML-lookalikes never become markup:
Redirects and comparisons
symblix render < input.md > output.html && diff <(symblix check < input.md) output.html
When the body contains two or more install-method blocks, the container renders as a tabbed switcher with keyboard and aria support:
Homebrew
brew install symblix
Script
curl -fsSL https://example.com/install.sh | sh
Each install-method is a labeled panel carrying its own copyable command. Without JavaScript the panels stack in order, each with its label visible. With JavaScript the existing tabs enhancement builds the switcher: panels switch on click or arrow keys, with aria-selected and aria-hidden kept in sync.
| Param | Type | Required | Description |
|---|---|---|---|
label |
string | yes | Panel title shown in the switcher and the stacked list. Build fails if omitted. |
id |
string | no | Panel id used for the aria wiring. Defaults to a stable id derived from the label. |
Nested install inside a tab is not supported: the tab body passes content through markdown, which can reflow the command. Use install-method children for multiple commands instead.
# Downloads
- Linux x86_64 4.2 MB sha256
- macOS arm64 3.9 MB
- Windows x86_64 4.6 MB
The downloads container wraps one or more download rows. Every row renders unconditionally — nothing is hidden, reordered, or filtered at render time. Rows with a known platform value carry the metadata used by the optional platform-detection enhancement; unknown values render as ordinary rows and never match detection. The container accepts id and class.
| Param | Type | Required | Description |
|---|---|---|---|
label |
string | yes | Row label shown as the download link. Build fails if omitted. |
href |
string | yes | Download URL. http(s) and root-relative links are meaningful; unknown schemes are escaped. |
platform |
string | no | One of linux, macos, windows. Other values render but never match detection. |
size |
string | no | Human-readable file size, shown as muted text. |
checksum |
string | no | URL of the checksum file, shown as a “sha256” link. |
primary |
bool | no | Emphasizes the recommended row. |
id |
string | no | Anchor id for the row. |
class |
string | no | Extra classes for the row. |
With JavaScript enabled, rows whose platform matches the visitor’s system gain a “Suggested for your system” badge and accent emphasis. Detection reads standard user-agent platform hints only — nothing is stored, transmitted, or fingerprinted — and rows are never hidden, reordered, or removed. Without JavaScript, every row renders identically with no badge.
# Placeholder URLs
The release and download URLs in the demos use https://github.com/lex/hugo-theme-symblix/... as placeholders. Replace them with the real release URLs for your project — the release tag, asset names, and checksum path must point at artifacts your release process actually publishes.