metamuffin's personal website


About 1751338781242 milliseconds have passed since midnight of the january the first in 1970.
------------------------------------------------------
        MyError(err)
    }
}



======================================
    Contents of "blog/mod.rs"
======================================
pub mod atom;
pub mod helper;

use self::helper::{article_metadata, get_articles};
use crate::error::MyResult;
use crate::layout::{DynScaffold, Scaffold};
use crate::uri;
use anyhow::anyhow;
pub use atom::r_blog_atom;
use atom::rocket_uri_macro_r_blog_atom;
use latex2mathml::DisplayStyle;
use markdown::mdast::Node;
use markup::{raw, DynRender};
use rocket::{get, response::Redirect};
use std::{path::PathBuf, str::FromStr};
use syntect::highlighting::ThemeSet;
use syntect::html::highlighted_html_for_string;
use syntect::parsing::SyntaxSet;
use tokio::fs::read_to_string;

pub const ARTICLE_ROOT: &'static str = "./blog/articles";