Below are documented:
blog.html page for the blog with the list of postsblog-post.html page for a single blog postblog-tag.html page for a single blog tagIn addition to these, you can also use the variables common to all pages.
The blog allows you to publish posts with images on the site. The blog.html page is the main blog page and shows the ten most recent posts ordered by publication date, with pagination to browse newer or older posts.
var (
// Link to next (older) posts.
nextPosts html
// Blog posts.
posts []BlogPost
// Link to previous (newer) posts.
previousPosts html
)
Page for a blog post.
var (
// Author.
author string
// Content.
content html
// Publication date.
date Time
// Wide image.
largeImage Image
// The <meta property="og:image"> tag that tells sites like Facebook
// which image to use for sharing.
// Insert between <head> and </head>.
metaOGImage html
// Small image.
smallImage Image
// Summary.
summary html
// Post tags.
tags []BlogTag
)
Page for a blog tag.
var (
// Content.
content html
// Image.
image Image
// Tag name.
name string
// Link to next (older) posts.
nextPosts html
// Blog posts with this tag.
posts []BlogPost
// Link to previous (newer) posts.
previousPosts html
)