model

package
v0.0.0-...-30b578c Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2019 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Title       string
	Description string
	Owner       string
	Pagination  int
	Theme       string
}

Config is data of main configuration file

type Group

type Group struct {
	Name   string
	Path   string
	NPosts int
}

Group is keyword for grouping several posts

type Page

type Page struct {
	Title     string
	Excerpt   string
	Path      string `toml:"-"`
	Thumbnail string `toml:"-"`
}

Page is a static standalone content

type Post

type Post struct {
	Title     string
	Excerpt   string
	CreatedAt string
	UpdatedAt string
	Category  string
	Tags      []string
	Author    string
	Path      string `toml:"-"`
	Thumbnail string `toml:"-"`
}

Post is the content that listed in chronological order

Jump to

Keyboard shortcuts

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