Struct mdblog::Mdblog [] [src]

pub struct Mdblog { /* fields omitted */ }

blog object

Methods

impl Mdblog
[src]

[src]

create from the root path.

[src]

load blog customize settings.

layered configuration system:

  • default settings
  • config.toml
  • BLOG_ prefix environment variable

[src]

load blog posts.

[src]

init blog directory.

[src]

build the blog html files to build_dir directory.

[src]

serve the blog static files in the build_dir directory.

[src]

rebuild blog

[src]

blog build directory absolute path.

[src]

blog theme root directory absolute path.

[src]

blog media root directory absolute path.

[src]

blog posts root directory.

[src]

blog glob ignore patterns.

the patterns are used when :

  • mdblog new command, the post path is checked
  • mdblog serve command, the modified file path is checked

[src]

create a new sample post.

[src]

export blog config.toml file.

[src]

export blog media files.

[src]

export blog static files.

[src]

export blog posts.

[src]

export blog index page.

[src]

export blog tag index page.

[src]

export blog rss.xml

[src]

render blog post html.

[src]

render index page html.

[src]

render tag pages html.

[src]

list blog themes.

[src]

create a new blog theme as same as the current blog theme.

[src]

delete a blog theme.

[src]

set blog theme.

Trait Implementations

Auto Trait Implementations

impl !Send for Mdblog

impl !Sync for Mdblog