Skip to main content

This is a theme based on the design of kjaymiller.com at the time

Project description

KJayMiller Render Engine Theme

Github Build Status

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

  1. Install this theme through pip:
pip install render-engine-theme-kjaymiller
  1. Import and register your theme:
from render_engine import Site
from render_engine_theme_kjaymiller import kjaymiller

app = Site()
app.register_themes(kjaymiller)
  1. 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')]
}
  1. 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)
  1. 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

File details

Details for the file render_engine_theme_kjaymiller-2024.11.2a1.tar.gz.

File metadata

File hashes

Hashes for render_engine_theme_kjaymiller-2024.11.2a1.tar.gz
Algorithm Hash digest
SHA256 03e817c4265ed4ffa7491b3790129e341e0dc864fa2116b4e0d880de0ab970b1
MD5 cd43c87617a16a966c1ffea24eb050ce
BLAKE2b-256 5a94406d406c86116f5a05c6770482ffa088363f1a4634c1e35b7ead8abe6403

See more details on using hashes here.

File details

Details for the file render_engine_theme_kjaymiller-2024.11.2a1-py3-none-any.whl.

File metadata

File hashes

Hashes for render_engine_theme_kjaymiller-2024.11.2a1-py3-none-any.whl
Algorithm Hash digest
SHA256 8fc907a88ee3eb69a03a74ebfc8bf56883ef0f7b4c8ee364e529ed15a256f56e
MD5 0cd4b6db04cc1072664e1e70363e8207
BLAKE2b-256 e54a1fab13d041e0f5eed5a986ac2685f806285084b1abfaddd60f6b8eaa5930

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page