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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77cbe71772df0e1b86db4ee202f602da2d3dcaa23be2489ac503e0d8b37db3a4 |
|
MD5 | a7e97531b7d3dea429a17e6b0b172522 |
|
BLAKE2b-256 | 14a0f508815ca9a48a3cc0722d27e08a7a045f45e2df634750647f346f123683 |
Close
Hashes for teedoc_plugin_assets-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 153115b552f2fda13d723d10cdf687baeab5f94d2064dda939336ea3ac7a9fde |
|
MD5 | 3c49a67b661e27f6ee2ba844dcf311c8 |
|
BLAKE2b-256 | e9596be2da99f990f41413f1baceebadcd911d3deaf95a3a779b2cfc09e1ffc3 |