Skip to content

Commit

Permalink
remove: unnecessary comments in theme readme
Browse files Browse the repository at this point in the history
  • Loading branch information
w568w committed Jan 31, 2023
1 parent 2e00651 commit f8eb47d
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions template/source/ink-blog-tool-en.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,29 +95,6 @@ page `page.html` (article list) and `article.html` (article), use variable with
Created any `.html` file will be copied to `source` directory, could use all variables on `site` field in `config.yml`.

#### Define Custom Variables

<!-- 纸小墨支持在页面中定义自定义变量,必须放置于 `config.yaml` 的 `site.config` 之下,如:

``` yaml
site:
config:
MyVar: "Hello World"
```

在页面中可通过 `{{.Site.Config.MyVar}}` 来引用该变量。

> **注意**
>
> 虽然 `config.yaml` 的其他部分字段名均为小写,但自定义变量的名称必须使用正确的大小写,如:

> ```yaml
site:
config:
MYVAR_aaa: "Hello World"
```
> 则在页面中必须使用 `{{.Site.Config.MYVAR_aaa}}` 来引用该变量。 -->

InkPaper supports defining custom variables in pages, which must be placed under `site.config` in `config.yaml`, such as:

``` yaml
Expand Down

0 comments on commit f8eb47d

Please sign in to comment.