added new headers with comments in lua and tera/jinja
parent
d1558df51a
commit
57ce4a93a8
10
src/main.rs
10
src/main.rs
|
@ -25,7 +25,15 @@ use std::env;
|
|||
use std::vec::Vec;
|
||||
use tera::Context;
|
||||
|
||||
const TITLES: [&str; 4] = ["/* {} */", "# {}", "// {}", "<!-- {} -->"];
|
||||
const TITLES: [&str; 7] = [
|
||||
"/* {} */",
|
||||
"# {}",
|
||||
"// {}",
|
||||
"<!-- {} -->",
|
||||
"{# {} #}",
|
||||
"-- {}",
|
||||
"--[[ {} --]]",
|
||||
];
|
||||
const MAX_POSTS_PER_PAGE: i64 = 20;
|
||||
|
||||
fn establish_connection() -> PgConnection {
|
||||
|
|
Loading…
Reference in New Issue