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 kjaymiller_render_engine_theme import theme
app = Site()
app.register_themes(theme)
- 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
"fontawesome": "12345abcde", # fontawesome license key
"buttondown": "kjaymiller", # newsletter id for embed
"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.10.2a4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35146f7222fb41d712ee0b0864c93dc65e867ace9d1a327ff2de6aa8ca8d1f4b |
|
MD5 | 60c76bbc30f8496b099054904337e79d |
|
BLAKE2b-256 | c9f2688e44995eb14aec6ce4ca92e79264f1a637c8b72f5db3da176b7900c287 |
Hashes for render_engine_theme_kjaymiller-2023.10.2a4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ce206e52769bfa2487b558672425cd779c92cfa5f14d4d9857975ea664b257f |
|
MD5 | 36e2c50e8df109cbda5ecde42ee6a864 |
|
BLAKE2b-256 | f4aa12a21d2c066f0094535702a1c8e24a36b42e370e0f7a6430b05871185d19 |