ipage

package module
v0.0.0-...-5068377 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: MIT Imports: 16 Imported by: 0

README

ipage

Package ipage implements functions to create static site like blog from a configuration and markdown files

Documentation

Overview

Package ipage provides a collection of helpers for generating html pages from markdown contents, and reading configuration files

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateHtml

func GenerateHtml(mdpath string, frt *interface{}) (template.HTML, error)

GenerateHtml generate html from markdown, use frt to decode the front matter

func GetPgname

func GetPgname(path string) string

GetPgname return the content page name from filepath

func GetTempFilesFromFolders

func GetTempFilesFromFolders(folders []string) ([]string, error)

GetTempFilesFromFolders return a slice of all template files path from input of folders and nil error ,or return error.

func Getconfig

func Getconfig(cfg string) map[string]any

Getconfig return a map of configuration settings from a configuration file

func ListContent

func ListContent(root string) []string

ListContent return list of contents from root folder

func NewTemp

func NewTemp() *template.Template

NewTemp return new template.

Types

This section is empty.

Jump to

Keyboard shortcuts

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