Add: allow param description for head meta

This commit is contained in:
zztkm 2022-08-05 22:19:49 +09:00
parent 1650b097f9
commit d5da337063
3 changed files with 7 additions and 2 deletions

View file

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

View file

@ -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>

4
vss.v
View file

@ -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'