view

package
v0.0.0-...-f2c9429 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

templ: version: v0.2.793

templ: version: v0.2.793

templ: version: v0.2.793

templ: version: v0.2.793

templ: version: v0.2.793

templ: version: v0.2.793

templ: version: v0.2.793

templ: version: v0.2.793

templ: version: v0.2.793

templ: version: v0.2.793

templ: version: v0.2.793

templ: version: v0.2.793

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlogFooter

func BlogFooter() templ.Component

func BlogHeader

func BlogHeader(m *Metadata) templ.Component

func BlogPostCard

func BlogPostCard(post *BlogPostPreview) templ.Component

func BlogSidebar

func BlogSidebar(featuredPosts []FeaturedPost) templ.Component

func GosudaBlogIndex

func GosudaBlogIndex(m *Metadata, blogPosts []*BlogPostPreview, featuredPosts []FeaturedPost) templ.Component

func GosudaBlogPost

func GosudaBlogPost(m *Metadata, doc *types.Document, post *types.Post) templ.Component
func Head(m *Metadata) templ.Component

func IndexPage

func IndexPage(m *Metadata, blogPosts []*BlogPostPreview, featuredPosts []FeaturedPost) templ.Component

func IndexPageBody

func IndexPageBody(m *Metadata, blogPosts []*BlogPostPreview, featuredPosts []FeaturedPost) templ.Component

func PostPage

func PostPage(m *Metadata, doc *types.Document, post *types.Post) templ.Component

func PostPageBody

func PostPageBody(m *Metadata, doc *types.Document, post *types.Post) templ.Component

func Sitemap

func Sitemap(feed *feeds.Feed) templ.Component

Types

type Alternate

type Alternate struct {
	Default  string
	Versions []KV
}

type BlogPostPreview

type BlogPostPreview struct {
	Title       string
	Author      string
	Description string
	Date        time.Time
	URL         string
}

type FeaturedPost

type FeaturedPost struct {
	Title string
	Link  string
}

type KV

type KV struct {
	Key   string
	Value string
}

type Metadata

type Metadata struct {
	Language    string
	Title       string
	Description string
	Author      string
	Keywords    []string
	Image       string
	URL         string
	BaseURL     string
	Canonical   string
	CreatedAt   time.Time
	UpdatedAt   time.Time
	GoImport    string
	CustomHead  string

	Alternate *Alternate
}

Jump to

Keyboard shortcuts

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