Start here

A blog

Posts with dates, pictures and tags, from a folder of markdown and the default look.

A blog is the site Quire makes with nothing added: one collection of dated documents. Getting started builds one by hand, and quire new mysite copies one.

func main() {
  quire.Run(model.Identity{Name: "Pictures", BaseURL: "https://example.com"}, base.Content())
}

A post

A post is a file in content/posts.

---
title: The ridge at first light
date: 2026-02-01
summary: One line of frontmatter is the whole of it.
picture: ridge.jpg
tag: [Go]
---

The body.

Each field shows up somewhere, and none of it needs a template.

The index

/posts lists every post, newest first: its month, title and summary, and its picture as a thumbnail.

The post index of the blog example, one post with a thumbnail and one without
The index: a post with a picture and a post without

The post's page

/posts/{name} is the post: its title, its date with updated beside it and a reading time, its summary, its links, its picture as the hero, then the body.

A post's page: under the title its date, the date it was updated and a reading time, then its summary, two link buttons and its picture as the hero
A post: dates, reading time, summary, links, hero, body

links are buttons under the date, for where the thing a post is about can be found:

links:
  - label: The route
    url: https://example.com/ridge
  - label: More posts
    url: /posts

A link to another site opens in a new tab.

Tags sit under the date, and a post with headings gets a table of contents.

A post with a tag under its date, a table of contents, and a diagram in the body
A post in the portfolio example: a tag, the contents and a diagram

What else you get

  • A home page with the site's name, its description and a link to each collection. An index.md in the content folder replaces it.
  • Navigation, with the collection in it, and a light and dark toggle.
  • sitemap.xml and robots.txt, once BaseURL is set.
  • A share image for each post: its picture, or the site's card when it has none.
  • draft: true keeps a post out of the site and the sitemap. --drafts shows it, badged, so it can be read in place before it is published.
  • featured: true marks a post. Collection.Featured() selects them, for a home page of your own to show first.

A card badges both. This is the portfolio example's home page, run with --drafts:

Three cards: one badged Draft, one badged Featured, one plain, each with its tags
Cards: a draft, a featured post and a plain one

The draft's own page carries the badge too:

A draft post's page, with a Draft badge above its title
A draft, read in place with --drafts

Tags

A tag is free text until the site declares its vocabulary, and then a tag outside it fails the load:

model.Spec{ID: "posts", Tags: model.Tags{"lang": {"Go"}, "topic": {"Design"}}}

Each tag is drawn with a class for its kind, so a language and a topic can look different. See Content.

Going further

  • Content is everything a post can hold.
  • The look changes the colours and fonts, or replaces a page.
  • The portfolio example has a home page, a tag vocabulary and a palette of its own.