Move meta with comments to template.
This commit is contained in:
34
templates/meta.ron
Normal file
34
templates/meta.ron
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
(
|
||||||
|
// og:title
|
||||||
|
title: "",
|
||||||
|
// og:description
|
||||||
|
description: "",
|
||||||
|
// article:tag
|
||||||
|
tags: [],
|
||||||
|
|
||||||
|
// og:site_name
|
||||||
|
site_name: "mysite.tld",
|
||||||
|
// og:locale
|
||||||
|
locale: "en_CA",
|
||||||
|
// og:type
|
||||||
|
type: "article",
|
||||||
|
|
||||||
|
authors: [
|
||||||
|
Author(
|
||||||
|
name: All( // Enum variant w/ fields
|
||||||
|
first: "Jane",
|
||||||
|
last: "Doe",
|
||||||
|
user: "xXGI_JaneXx",
|
||||||
|
),
|
||||||
|
gender: Female,
|
||||||
|
),
|
||||||
|
],
|
||||||
|
|
||||||
|
// chrono::NaiveDate with custom deserialize from string.
|
||||||
|
// Here it will instead autofill with chrono::NaiveDate::default() values.
|
||||||
|
//
|
||||||
|
// "%Y-%m-%d"
|
||||||
|
date: Date(),
|
||||||
|
|
||||||
|
image: None,
|
||||||
|
)
|
||||||
@@ -1,21 +1,15 @@
|
|||||||
(
|
(
|
||||||
// og:title
|
|
||||||
title: "",
|
title: "",
|
||||||
// og:description
|
|
||||||
description: "",
|
description: "",
|
||||||
// article:tag
|
|
||||||
tags: [],
|
tags: [],
|
||||||
|
|
||||||
// og:site_name
|
|
||||||
site_name: "Cutieguwu.ca",
|
site_name: "Cutieguwu.ca",
|
||||||
// og:locale
|
|
||||||
locale: "en_CA",
|
locale: "en_CA",
|
||||||
// og:type
|
|
||||||
type: "article",
|
type: "article",
|
||||||
|
|
||||||
authors: [
|
authors: [
|
||||||
Author(
|
Author(
|
||||||
name: All( // Enum variant w/ fields
|
name: All(
|
||||||
first: "Olivia",
|
first: "Olivia",
|
||||||
last: "Brooks",
|
last: "Brooks",
|
||||||
user: "Cutieguwu",
|
user: "Cutieguwu",
|
||||||
@@ -24,10 +18,6 @@
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|
||||||
// chrono::NaiveDate with custom deserialize from string.
|
|
||||||
// Here it will instead autofill with chrono::NaiveDate::default() values.
|
|
||||||
//
|
|
||||||
// "%Y-%m-%d"
|
|
||||||
date: Date(),
|
date: Date(),
|
||||||
|
|
||||||
image: None,
|
image: None,
|
||||||
|
|||||||
Reference in New Issue
Block a user