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: "",
|
||||
// og:description
|
||||
description: "",
|
||||
// article:tag
|
||||
tags: [],
|
||||
|
||||
// og:site_name
|
||||
site_name: "Cutieguwu.ca",
|
||||
// og:locale
|
||||
locale: "en_CA",
|
||||
// og:type
|
||||
type: "article",
|
||||
|
||||
authors: [
|
||||
Author(
|
||||
name: All( // Enum variant w/ fields
|
||||
name: All(
|
||||
first: "Olivia",
|
||||
last: "Brooks",
|
||||
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(),
|
||||
|
||||
image: None,
|
||||
|
||||
Reference in New Issue
Block a user