From d5da3370635d2c794c7e8702fa35fda2304cf843 Mon Sep 17 00:00:00 2001 From: zztkm Date: Fri, 5 Aug 2022 22:19:49 +0900 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Add:=20allow=20param=20`description?= =?UTF-8?q?`=20for=20head=20meta?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/config.toml | 3 ++- example/layouts/_index.html | 2 ++ vss.v | 4 +++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/example/config.toml b/example/config.toml index 6de20b1..051fcb8 100644 --- a/example/config.toml +++ b/example/config.toml @@ -1 +1,2 @@ -title = "Open Sea" \ No newline at end of file +title = "Open Sea" +description = "Takumi Tsuruta's home page" \ No newline at end of file diff --git a/example/layouts/_index.html b/example/layouts/_index.html index ec93c19..884965e 100644 --- a/example/layouts/_index.html +++ b/example/layouts/_index.html @@ -3,7 +3,9 @@ @title + + @contents \ No newline at end of file diff --git a/vss.v b/vss.v index 796656f..f39ca21 100644 --- a/vss.v +++ b/vss.v @@ -5,11 +5,13 @@ import cli import toml import regex import markdown + import template const default_config = 'config.toml' -const config_params = ['title'] +// Allowed parameters +const config_params = ['title', "description"] const default_template = 'layouts/_index.html'