assets plugin for teedoc to add css and js assets to pages or other custom items to pages
Project description
teedoc-plugin-assets
Add css and js items(/files) to pages or other custom items to pages
site_config.json
:
{
"route": {
"assets": {
"/static/": "static",
},
},
"plugins": {
"teedoc-plugin-assets":{
"from": "pypi",
"config": {
"header_items": [
"/static/css/custom.css",
"<meta name=\"plugin-assets\" content=\"example meta item\">"
],
"footer_items": [
"/static/css/custom.js"
],
"env":{
"main_color": "#000000"
}
}
},
}
}
custom.css
:
a {
color: ${main_color}
}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for teedoc-plugin-assets-1.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6d038df885068e0e64cdd738c1015acd9aa6eea086f2177233a917d84f55854 |
|
MD5 | b5f275bbcec9f49a749cf26fd04f8633 |
|
BLAKE2b-256 | bd41813081b65a26b31f6e327c4f8bd23ff005f3e610de9f1de57576ec04a551 |
Close
Hashes for teedoc_plugin_assets-1.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa820f3771dca25b9be4c89ba8b75a694863c4a0cce9c3110b46d502a158b860 |
|
MD5 | e04dbfae5cae2f5da8c47b5c1e409454 |
|
BLAKE2b-256 | e8c575705dbb8704fc68702223180b630f9c2d9997ec607d79f297838d994c81 |