Module blog_tools::low
source · 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();
Structs§
- An individual blog post
- An individual blog post
Functions§
- Use this function to get a list of all unique tags in your blog
- Previews blogs for an index page. Will order from newest to oldest
- 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.
- Renders an individual blog post.