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'