components

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

templ: version: v0.2.771

templ: version: v0.2.771

templ: version: v0.2.771

templ: version: v0.2.771

templ: version: v0.2.771

templ: version: v0.2.771

templ: version: v0.2.771

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Article

func Article(a ArticleArgs) templ.Component

func ArticleList

func ArticleList(a ArticleListArgs) templ.Component

func ChangelogContainer

func ChangelogContainer(args ChangelogContainerArgs) templ.Component

Contains the article list and footer

func Footer(args FooterArgs) templ.Component

func HeaderContainer

func HeaderContainer() templ.Component

func HeaderContent

func HeaderContent(args HeaderArgs) templ.Component

func LogoImg

func LogoImg(args Logo) templ.Component
func Navbar() templ.Component

func Prose added in v0.4.0

func Prose() templ.Component

A wrapper to apply tailwind typography styles to the underlying texts

func RSS

func RSS(args RSSArgs) templ.Component

func Tag added in v0.2.0

func Tag(name string) templ.Component

func Theme added in v0.1.5

func Theme(args ThemeArgs) templ.Component

Types

type ArticleArgs

type ArticleArgs struct {
	ID          string
	Title       string
	Description string
	PublishedAt time.Time
	Tags        []string
	Content     string
}

type ArticleListArgs

type ArticleListArgs struct {
	Articles []ArticleArgs
}

type ChangelogContainerArgs added in v0.4.0

type ChangelogContainerArgs struct {
	CurrentURL     string
	HasMoreArticle bool
}

type FooterArgs added in v0.1.9

type FooterArgs struct {
	HidePoweredBy bool
}

type HeaderArgs

type HeaderArgs struct {
	Title    apitypes.NullString
	Subtitle apitypes.NullString
}

type RSSArgs

type RSSArgs struct {
	FeedURL string
}

type ThemeArgs added in v0.1.5

type ThemeArgs struct {
	ColorScheme apitypes.ColorScheme
}

Jump to

Keyboard shortcuts

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