Ajout du champ commenté "updated" aux modèles
This commit is contained in:
@@ -134,6 +134,7 @@ def build_vocabulary(title: str, timestamp: str, nature: str) -> str:
|
||||
return f"""+++
|
||||
title = {toml_string(title)}
|
||||
date = {timestamp}
|
||||
# updated = YYYY-MM-DD
|
||||
description = ""
|
||||
draft = true
|
||||
|
||||
@@ -150,6 +151,7 @@ def build_sign(title: str, timestamp: str, mzl: str) -> str:
|
||||
return f"""+++
|
||||
title = {toml_string(title)}
|
||||
date = {timestamp}
|
||||
# updated = YYYY-MM-DD
|
||||
description = ""
|
||||
draft = true
|
||||
|
||||
@@ -168,6 +170,7 @@ def build_page(section: str, title: str, timestamp: str) -> str:
|
||||
return f"""+++
|
||||
title = {toml_string(title)}
|
||||
date = {timestamp}
|
||||
# updated = YYYY-MM-DD
|
||||
description = ""
|
||||
draft = true
|
||||
|
||||
@@ -182,6 +185,7 @@ banner_credit = ""
|
||||
return f"""+++
|
||||
title = {toml_string(title)}
|
||||
date = {timestamp}
|
||||
# updated = YYYY-MM-DD
|
||||
description = ""
|
||||
draft = true
|
||||
|
||||
@@ -194,6 +198,7 @@ themes = []
|
||||
return f"""+++
|
||||
title = {toml_string(title)}
|
||||
date = {timestamp}
|
||||
# updated = YYYY-MM-DD
|
||||
description = ""
|
||||
draft = true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user