blog

package
v2.38.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Simple blog

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadPosts

func LoadPosts() error

Types

type Post

type Post struct {
	Meta         *PostMeta
	RenderedBody template.HTML
}

func GetPost

func GetPost(id int) *Post

func GetPostsNewest

func GetPostsNewest(limit, offset int) []*Post

type PostMeta

type PostMeta struct {
	Author string
	Date   string
	Title  string
	ID     int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL