add some opengraph bullshit for previews
This commit is contained in:
+8
-2
@@ -225,9 +225,15 @@ fn main() {
|
||||
|
||||
// Generate the detail page
|
||||
{
|
||||
let win_title = format!("Bread from {}", date);
|
||||
|
||||
let detail = detail_tpl
|
||||
.replace("{head}", &head_tpl.replace("{title}", &format!("Bread from {}", date)).trim())
|
||||
.replace("{title}", &date)
|
||||
.replace("{head}", &head_tpl.replace("{title}", &win_title))
|
||||
.replace("{title}", &win_title)
|
||||
.replace("{date}", &date_slug)
|
||||
.replace("{url}", &format!("https://www.ondrovo.com/bread/{}", detail_file))
|
||||
.replace("{thumb_url}", &format!("https://www.ondrovo.com/bread/thumbs/{}", thumb_fname))
|
||||
.replace("{heading}", &date)
|
||||
.replace("{note}", note.trim());
|
||||
|
||||
let mut pics = String::new();
|
||||
|
||||
Reference in New Issue
Block a user