This is a theme based on the design of kjaymiller.com at the time
Project description
KJayMiller Render Engine Theme
This is a theme based on the early development of render-engine for kjaymiller.com.
It relies on Tailwind CSS with support for icons via fontawesome and embeds for analytics, and newsletters.
Quickstart
- Install this theme through pip:
pip install render-engine-theme-kjaymiller
- Import and register your theme:
from render_engine import Site
from render_engine_theme_kjaymiller import kjaymiller
app = Site()
app.register_themes(kjaymiller)
- Add configuration file
This theme supports styling through TailwindCSS. To add your own configuration, create a tailwind.config.js
file in your project root and add your configuration there. You will need the following information in your config:
// tailwind.config.js
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['output/**/*.{html, js}'],
plugins: [require('@tailwindcss/typography')]
}
- Add your theme settings
This theme supports embeds for many different tools as well as configurations for your tailwindcss settings in your app.py
module. Here is a basic example of what your site's theme settings might look like:
app = Site()
settings = {
"NAVIGATION": {...} ,
... # settings for other plugins and your site
"theme" : {
... # Your theme settings
"colors": {
"main1": "rose-800", # You can use any valid tailwindcss color here
}
"favicon": "https:fav.farm/☕", # url to your favicon
"colors": {
"main1": "purple-500",
"header_gradient_interval": 100,
},
"social": {
"youtube": "https://www.youtube.com/kjaymiller",
"twitter": "https://twitter.com/kjaymiller",
"linkedin": "https://linkedin.com/in/kjaymiller",
"github": "https://github.com/kjaymiller",
"mastodon": "https://mastodon.social/@kjaymiller",
},
}
}
# Update your settings: prefer update to overwrite
app.site_settings.update(theme)
- Build your site
python -m render_engine serve --build app:app
Project details
Release history Release notifications | RSS feed
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
Hashes for render-engine-theme-kjaymiller-2023.11.1b1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71f8d742229e53f8abca6f8a27cc4b787d6089b85c86084c4356fbf3dece1d8b |
|
MD5 | 435dae778273d3e8094b7eab0b2ad407 |
|
BLAKE2b-256 | d8584850a2c9a4719d014d8c12cff043fafb5a1131159f5f7939fc631710d276 |
Hashes for render_engine_theme_kjaymiller-2023.11.1b1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4baf94f8468c35994d0b2435ce99c6e65a3aef28c6e5d122e052c4b7b441431b |
|
MD5 | 9c61fe313ccfbd189c82baa867ee1feb |
|
BLAKE2b-256 | d2118861a9d33f2b65bb1320a27b82f9795da0f5e349c53436fef04cb94cf229 |