blog

package
v0.0.0-...-baa06f7 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const FeedURL = "https://api.rss2json.com/v1/api.json?rss_url=https://blog.gobuffalo.io/feed"

Variables

This section is empty.

Functions

func Indexer

func Indexer(app *buffalo.App) search.Indexer

Types

type Feed

type Feed struct {
	Status string `json:"status"`
	Feed   struct {
		URL         string `json:"url"`
		Title       string `json:"title"`
		Link        string `json:"link"`
		Author      string `json:"author"`
		Description string `json:"description"`
		Image       string `json:"image"`
	} `json:"feed"`
	Items []Item `json:"items"`
}

type Item

type Item struct {
	Title       string `json:"title"`
	PubDate     string `json:"pubDate"`
	Link        string `json:"link"`
	GUID        string `json:"guid"`
	Author      string `json:"author"`
	Thumbnail   string `json:"thumbnail"`
	Description string `json:"description"`
	Content     string `json:"content"`
	Enclosure   struct {
	} `json:"enclosure"`
	Categories []string `json:"categories"`
}

func LastPosts

func LastPosts() [3]Item

Jump to

Keyboard shortcuts

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