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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b2080f494f81b004eed9c9a1d4d501b0691a3aa897ee88e03dca74958ddd128 |
|
MD5 | 977e75e857ec754b5f543a04fac89e26 |
|
BLAKE2b-256 | 8c8151c9b53138aef4c024b1b9e03a6422de2f12f58495bde319ecc0cd2e905e |
Close
Hashes for teedoc_plugin_assets-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c6adaabe6f76c3239d3f3c668069338c9535618583f8d93efc085d1ec69e7a8 |
|
MD5 | 52841b4c1878eebb6993599822dc15df |
|
BLAKE2b-256 | 959591b7d959f34721d97e9e2b4c5fae6220f172b6bbea1883beaf2e9e4c942b |