added new headers with comments in lua and tera/jinja

pull/1/head
kirbylife 2019-11-21 14:31:04 -06:00
parent d1558df51a
commit 57ce4a93a8
1 changed files with 9 additions and 1 deletions

View File

@ -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 {