template

package
v1.0.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package template contains template definitions for the default stele blog pages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultLayout

func DefaultLayout(title, description, author, copyright string, menu []MenuLink) func(string) templ.Component

DefaultLayout returns a LayoutFunc that renders its children in the stele layout.

The default layout ensures that all required CSS is linked in, that the RSS feed and web manifest are present, and that page titles are correctly formatted for SEO.

Types

type MenuLink struct {
	// The text to show the user.
	Label string

	// The path for the link.
	Path string
}

MenuLink represents a link that will appear in the main page navigation.

Directories

Path Synopsis
Package components contains templates for components used on multiple pages.
Package components contains templates for components used on multiple pages.
icons
Package icons contains components that render SVG icons.
Package icons contains components that render SVG icons.
Package pages contains templates for individual pages in a rendered blog.
Package pages contains templates for individual pages in a rendered blog.

Jump to

Keyboard shortcuts

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