mirror of
https://github.com/getzola/zola
synced 2025-01-09 10:28:49 +00:00
17 lines
395 B
Rust
17 lines
395 B
Rust
mod config;
|
|
pub mod highlighting;
|
|
mod theme;
|
|
|
|
pub use crate::config::{
|
|
languages::LanguageOptions, link_checker::LinkChecker, search::Search, slugify::Slugify,
|
|
taxonomies::Taxonomy, Config,
|
|
};
|
|
use errors::Result;
|
|
|
|
use std::path::Path;
|
|
|
|
/// Get and parse the config.
|
|
/// If it doesn't succeed, exit
|
|
pub fn get_config(filename: &Path) -> Result<Config> {
|
|
Config::from_file(filename)
|
|
}
|