Add: allow param `description` for head meta

main
zztkm 2 years ago
parent 1650b097f9
commit d5da337063

@ -1 +1,2 @@
title = "Open Sea" title = "Open Sea"
description = "Takumi Tsuruta's home page"

@ -3,7 +3,9 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>@title</title> <title>@title</title>
<meta name="description" content="@description" />
</head> </head>
<body> <body>
@contents @contents
</body> </body>

@ -5,11 +5,13 @@ import cli
import toml import toml
import regex import regex
import markdown import markdown
import template import template
const default_config = 'config.toml' const default_config = 'config.toml'
const config_params = ['title'] // Allowed parameters
const config_params = ['title', "description"]
const default_template = 'layouts/_index.html' const default_template = 'layouts/_index.html'

Loading…
Cancel
Save