EN IT
Open2b version 7.8

Blog

Below are documented:

In addition to these, you can also use the variables common to all pages.

blog.html

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

)

blog-post.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

)

blog-tag.html

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

)