Skip to content

Commit

Permalink
Update user guide
Browse files Browse the repository at this point in the history
  • Loading branch information
yash-chowdhary committed Mar 1, 2020
1 parent 2bdbb32 commit c4d1cbf
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/site.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"baseUrl": "",
"timeZone": "Asia/Singapore",
"titlePrefix": "MarkBind",
"pages": [
{
Expand Down
16 changes: 15 additions & 1 deletion docs/userGuide/syntax/variables.mbdf
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,21 @@ Represents the root directory of the project. Used for specifying intra-site lin

##### Built-in Variable: `timestamp`

<code>{<span></span>{ timestamp }}</code> is the time stamp (in UTC) that indicates when the page was generated.
<code>{<span></span>{ timestamp }}</code> is the time stamp that indicates when the page was generated.

You can set the time zone and locale in `site.json` like so -

```js
site.json
{
...
"timeZone": "Asia/Singapore",
"locale": "en-US",
...
}
```

The default values of `"timeZone"` and `"locale"` are `"UTC"` and `"en-GB"` respectively.

<div class="indented">

Expand Down

0 comments on commit c4d1cbf

Please sign in to comment.