core

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package core provides shared types for the site command: Atom XML feed structures used by the feed subcommand.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlogFrontmatter

type BlogFrontmatter struct {
	Title                string   `yaml:"title"`
	Date                 string   `yaml:"date"`
	Author               string   `yaml:"author"`
	Topics               []string `yaml:"topics"`
	ReviewedAndFinalized *bool    `yaml:"reviewed_and_finalized"`
}

BlogFrontmatter maps the YAML fields we care about.

type BlogPost

type BlogPost struct {
	Filename string
	Title    string
	Date     string
	Author   string
	Topics   []string
	Summary  string
}

BlogPost holds parsed metadata from a single blog post.

type FeedReport

type FeedReport struct {
	Included int
	Skipped  []string
	Warnings []string
}

FeedReport tracks what happened during feed generation.

type PostStatus

type PostStatus int

PostStatus indicates the outcome of parsing a single blog post.

const (
	PostIncluded PostStatus = iota
	PostSkipped
	PostWarn
)

Directories

Path Synopsis
Package rss generates Atom XML feeds from blog post metadata.
Package rss generates Atom XML feeds from blog post metadata.
Package scan reads blog post directories, parses frontmatter, and returns sorted post metadata.
Package scan reads blog post directories, parses frontmatter, and returns sorted post metadata.

Jump to

Keyboard shortcuts

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