feat(page): add custom page library support (css and js) (#357)

This commit is contained in:
Dillon
2020-05-13 22:12:51 +08:00
committed by GitHub
parent 861350be32
commit 486d859cc8
8 changed files with 93 additions and 0 deletions

View File

@@ -90,6 +90,17 @@ share:
comment:
enable: true
# ...
library:
css:
# someCSS = "some.css"
# located in "assets/"
# Or
# someCSS = "https://cdn.example.com/some.css"
js:
# someJS = "some.js"
# located in "assets/"
# Or
# someJS = "https://cdn.example.com/some.js"
---
```
@@ -125,6 +136,7 @@ comment:
* **mapbox**: {{< version 0.2.0 >}} the same as the `params.page.mapbox` part in the [site configuration](../theme-documentation-basics#site-configuration).
* **share**: the same as the `params.page.share` part in the [site configuration](../theme-documentation-basics#site-configuration).
* **comment**: {{< version 0.2.0 changed >}} the same as the `params.page.comment` part in the [site configuration](../theme-documentation-basics#site-configuration).
* **library**: {{< version 0.2.7 >}} the same as the `params.page.library` part in the [site configuration](../theme-documentation-basics#site-configuration).
## 3 Content Summaries