Expand description
low
refers to low RAM usage - use this module when your blog is so massive
you can not fit anything at all in RAM at all times, or perhaps in a serverless
context. Do note that this crate is always reading files off disc - at a
certain point you will probably want to start storing these in some kind
of database
ⓘ
let preview = preview_blogs(PathBuf::from_str(BLOG_ROOT).unwrap(), 2, None);
let tags = get_blog_tag_list(PathBuf::from_str(BLOG_ROOT).unwrap());
let blog_post = render_blog_post(PathBuf::from_str(BLOG_ROOT).unwrap(), date, slug, None).unwrap();
let sitemap = create_sitemap(BLOG_ROOT, URL, &SitemapOptions::default());
Structs§
- LowBlog
Entry - An individual blog post
- Preview
Blog Entry - An individual blog post
Functions§
- get_
blog_ tag_ list - Use this function to get a list of all unique tags in your blog
- preview_
blogs - Previews blogs for an index page. Will order from newest to oldest
- preview_
blogs_ tagged - This function will find all of the blogs with the specified tag, so they can be previewed (e.g. on a tag index page). They won’t contain the full HTML of the blog, only a preview.
- render_
blog_ post - Renders an individual blog post.