Built-in Data Sources

System integration with datetime, git, and environment sources

Available Data Sources

🕒 DateTime Data Source

Provides current date and time components as individual tokens for flexible formatting.

  • Date components: year, month, day, weekday names
  • Time components: hour, minute, second, AM/PM
  • Pre-formatted strings: ISO 8601, RFC 3339, localized formats
  • Build timestamp for consistent times across pages

View DateTime Examples →

🔧 Git Data Source

Repository information read directly from .git directory without requiring git command.

  • Current branch and commit information
  • Remote repository URLs
  • Repository description
  • Works without git installed

View Git Examples →

🌍 Environment Data Source

Controlled exposure of environment variables through a whitelist configuration.

  • Text file listing allowed variable names
  • Safe exposure preventing information leaks
  • Graceful handling of undefined variables
  • Useful for build-time configuration

View Environment Examples →

⏰ File Metadata Source

Filesystem metadata (mtime, size, path info) using page context resolution.

  • Modification timestamps in various formats
  • File sizes (bytes, human-readable, reading time estimates)
  • Path information (filename, extension, etc.)
  • Zero-cost abstraction using Universal Index

View Metadata Examples →

🧭 Navigation Source

Automatic prev/next navigation for page collections, with position tokens and title extraction.

  • Prev/next URLs and titles per page
  • Position index and total count
  • Alphabetical, numeric, human, and timestamp sort
  • Handles boundaries (first/last page) automatically

See Navigation Overview →

📇 Index Source

Auto-extracts per-file metadata and generates listings — two modes from one source type.

  • Metadata-only: title, URL, date, excerpt per page — no template needed
  • Listing: trigger token renders all files through an item template
  • Title and excerpt extracted from file content automatically
  • Alphabetical, numeric, human, and timestamp sort

See Index Overview →

Quick Examples

Current Build Information

Built on: 2026-06-09 at 00:58:34

Git commit: 4915a3ae16 on branch main

Built by: mattdm on /bin/bash