gutenblog

package module
v0.0.0-...-00f0b3a Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2022 License: 0BSD Imports: 15 Imported by: 0

README

#+title: Project Gutenblog
#+date: February 15, 2022
#+options: toc:nil

* Solo-blog
#+begin_src text
Working directory:
└── blog/
    ├── posts/
    │   └── hello-world/
    │       └── hello-world.txt
    ├── tmpl/
    │   ├── base.html.tmpl
    │   ├── home.html.tmpl
    │   └── post.html.tmpl
    │
    └── www/
        ├── assets/
        │   └── logo.png
        ├── css/
        │   └── style.css
        └── index.html

Output directory:
└── www/
    ├── assets/
    │   └── logo.png
    ├── foo/
    │   └── 2006/
    │       └── 01/
    │           └── 02/
    │               └── hello-world/
    │                   └── index.html
    ├── css/
    │   └── style.css
    └── index.html
#+end_src

* Multi-blog
#+begin_src text
Working directory:
└── site/
    ├── blog/
    │   ├── bar/
    │   │   ├── posts/
    │   │   │    └── hello-bar/
    │   │   │        └── hello-bar.txt
    │   │   └── tmpl/
    │   │       ├── base.html.tmpl
    │   │       ├── home.html.tmpl
    │   │       └── post.html.tmpl
    │   └── foo/
    │       ├── posts/
    │       │     └── hello-foo/
    │       │         └── hello-foo.txt
    │       └── tmpl/
    │           ├── base.html.tmpl
    │           ├── home.html.tmpl
    │           └── post.html.tmpl
    │
    └── www/
        ├── assets/
        │   └── logo.png
        ├── blog/
        │   ├── bar/
        │   │   └── index.html
        │   ├── foo/
        │   │   └── index.html
        ├── css/
        │   └── style.css
        └── index.html

Output directory:
└── www/
    ├── assets/
    │   └── logo.png
    ├── blog/
    │   ├── bar/
    │   │   └── index.html
    │   │   └── 2006/
    │   │       └── 01/
    │   │           └── 02/
    │   │               └── hello-bar/
    │   │                   └── index.html
    │   └── foo/
    │       └── 2006/
    │           └── 01/
    │               └── 02/
    │                   └── hello-foo/
    │                       └── index.html
    ├── css/
    │   └── style.css
    └── index.html
#+end_src

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(rootDir, outDir string, logger *log.Logger) (*site, error)

New initializes a new gutenblog site. If the provided logger is nil then the default logger is used instead.

Types

type TmplArchive

type TmplArchive []struct {
	Title string
	Posts []struct {
		Title string
		URL   string
		Date  date
	}
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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