GitHub CMS for Blazor: Getting Started
Learn how to structure your content repo, write frontmatter, and connect your Blazor app.
Repository structure
content/
??? en/
? ??? blog/
? ??? docs/
? ??? pages/
??? fr/
??? ...
Frontmatter template
---
title: "Page Title"
author: "Author Name"
date: "2025-01-25"
description: "Short SEO description."
slug: "page-title"
categories: [Docs]
tags: [Blazor, CMS]
featured_image: "/images/feature.jpg"
seo_properties:
title: "SEO Title"
description: "SEO Description"
og_image_url: "/images/social.jpg"
type: "Article"
---
App configuration
builder.Services.AddOsirionContent(c => c.AddGitHub(o => {
o.Owner = "username";
o.Repository = "content-repo";
o.ContentPath = "content";
o.Branch = "main";
o.UseCache = true;
}));
Rendering content
<ContentView Path="blog/my-post.md" />
Queries
<ContentList Directory="blog" Count="10" SortBy="SortField.Date" />
SEO & SSR
- Use SeoMetadataRenderer with current content
- Keep pages functional without JS; enhance progressively
Next steps
Related items
GitHub CMS Documentation
Comprehensive documentation for the GitHub CMS components in Osirion.Blazor.
Dejan Demonjić
26.8.2025.
4 min