view

package
v0.0.0-...-d4cc3fb Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

templ: version: v0.2.707

templ: version: v0.2.707

templ: version: v0.2.707

templ: version: v0.2.707

Index

Constants

This section is empty.

Variables

View Source
var AllPostEntries []PostSearchEntry
View Source
var AllTags []string
View Source
var PostIndex = make(map[string]PostEntry)

Functions

func Home

func Home(posts []PostSearchEntry, tags []string) templ.Component

func NormalizeTag

func NormalizeTag(t string) string

func Post

func Post(entry PostEntry) templ.Component

func PostList

func PostList(posts []PostSearchEntry, hlWords []string) templ.Component

Types

type PostEntry

type PostEntry struct {
	Component templ.Component
	Title     string
	Tags      []string
	CreatedAt time.Time
}

type PostSearchEntry

type PostSearchEntry struct {
	URL       string
	Title     string
	Tags      []string
	CreatedAt time.Time
}

Jump to

Keyboard shortcuts

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