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
Index ¶
- func AuthForm(redirect string) templ.Component
- func AuthRedirect(postAuthRedirect string) templ.Component
- func Backups(bs []string) templ.Component
- func Base(desc string, tags NullTags) templ.Component
- func DeleteMedia(media database.Mediafile) templ.Component
- func DeletePost(post database.Post, q *database.Queries) templ.Component
- func EditMedia(m database.Mediafile) templ.Component
- func EditPost(post database.Post) templ.Component
- func FormatTags(s sql.NullString) string
- func MdToHTML(ctx context.Context, q *database.Queries, md string) string
- func Media(mediaFiles []database.Mediafile) templ.Component
- func Mediafile(media database.Mediafile) templ.Component
- func Nav(page int, maxPage int, query string) templ.Component
- func NotFound(message string) templ.Component
- func Post(post database.Post, tags []database.GetAllTagsRow, q *database.Queries) templ.Component
- func Posts(posts []database.Post, tags []database.GetAllTagsRow, nav templ.Component, ...) templ.Component
- func SpotifyEmbed(sc database.SpotifyCache) templ.Component
- func UnixTimeToHTMLDateTime(unixTime int64) string
- func YoutubeEmbed(ytc database.YoutubeCache) templ.Component
- type NullTags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthRedirect ¶
func EditPost ¶
func calcFontSize(count int64) string { return fmt.Sprintf("font-size: %fem;", 2.0 - float64(tag.TagCount) * 0.02) }
func FormatTags ¶ added in v0.8.0
func FormatTags(s sql.NullString) string
func SpotifyEmbed ¶
func SpotifyEmbed(sc database.SpotifyCache) templ.Component
func UnixTimeToHTMLDateTime ¶
func YoutubeEmbed ¶
func YoutubeEmbed(ytc database.YoutubeCache) templ.Component
Types ¶
type NullTags ¶ added in v0.7.0
type NullTags struct { Valid bool Tags []database.GetAllTagsRow }
Click to show internal directories.
Click to hide internal directories.