convert

package
v3.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2025 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package convert defines helpers to transform various data strings to other data strings

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Date

func Date(date string) (string, string, error)

Date function resolves the date d (format YYYY-MM-DD) Returns a pretty date and a machine date

func NavCrumbs(np nodepath.NodePath, inDir string, isExt bool) ([]string, []string)

NavCrumbs returns navigation components If link is "/a/b/c/file.md", then:

crumbsTitle: {"a", "b", "c"}

crumbsLink: {"a/index.html", "a/b/index.html", "a/b/c/index.html"}

func Title

func Title(metadataTitle string, filename string) string

Title returns title from metadata else from filename

Types

This section is empty.

Jump to

Keyboard shortcuts

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