Update docs-site

This commit is contained in:
Ta-Ching Chen
2018-01-23 13:27:10 +08:00
parent 8df520721c
commit 01bcfad44a
428 changed files with 6789 additions and 29646 deletions
@@ -0,0 +1,23 @@
---
title: Site param
description : "Get value of site params variables in your page."
---
`siteparam` shortcode is used to help you print values of site params.
For instance, in this current site, the `editURL` variable is used in `config.toml`
```toml
[params]
editURL = "https://github.com/matcornic/hugo-theme-learn/edit/master/exampleSite/content/"
```
Use the `siteparam` shortcode to display its value.
```
`editURL` Value : {{%/* siteparam "editURL" */%}}
```
is displayed as
`editURL` Value : {{% siteparam "editURL" %}}