This example demonstrates GenGen's flexible plugin system with various configuration options.
GenGen uses a powerful plugin system that allows you to:
- Enable/disable plugins individually or by groups
- Configure plugin-specific settings
- Create custom plugin groups
- Use command-line tools to inspect plugin status
GenGen organizes plugins into logical groups:
- core: Essential plugins (DraftPlugin, MarkdownPlugin, LiquidPlugin)
- seo: SEO optimization (RssPlugin, SitemapPlugin)
- assets: Asset processing (SassPlugin, TailwindPlugin)
- content: Content enhancement (PaginationPlugin, AliasPlugin)
plugins:
enabled:
- coreThis enables only the essential plugins needed for basic functionality.
plugins:
enabled:
- core
- seo
- contentPerfect for blogs with RSS feeds, sitemaps, and pagination.
plugins:
enabled:
- core
- seo
- assets
- contentEnables all plugin groups for maximum functionality.
plugins:
enabled:
- MarkdownPlugin
- LiquidPlugin
- SassPlugin
- RssPluginSelect specific plugins without using groups.
plugins:
enabled:
- core
- assets
disabled:
- TailwindPluginEnable groups but disable specific plugins.
Each plugin can have its own configuration section:
# RSS feed settings
rss:
path: feed.xml
limit: 20
full_content: false
# Sitemap settings
sitemap:
path: sitemap.xml
include_posts: true
include_pages: true
# Sass compilation
sass:
style: compressed
source_map: false
load_paths: ["_sass"]
# Tailwind CSS
tailwind:
executable: "./tailwindcss"
input: "assets/css/tailwind.css"
output: "assets/css/styles.css"
# Pagination
pagination:
enabled: true
per_page: 10
permalink: "/page/:num/"
title_suffix: " - Page :num"Use these commands to inspect your plugin configuration:
# Show plugin overview
gengen plugins
# Show all available plugins
gengen plugins --available
# Show only enabled plugins
gengen plugins --enabled
# Show plugin groups
gengen plugins --groups-
Navigate to this directory:
cd examples/plugin-config-demo -
Check current plugin status:
gengen plugins
-
Try different configurations by modifying
config.yaml -
Build the site:
gengen build
Try modifying the config.yaml file to experiment with different plugin combinations:
- Comment/uncomment different plugin groups in the
enabledsection - Add plugins to the
disabledsection - Create your own custom plugin groups
- Adjust plugin-specific settings
- Start with core: Always enable at least the core plugin group
- Use groups: Organize related functionality with plugin groups
- Test configurations: Verify your setup works as expected
- Monitor performance: Some plugins may impact build times
- Document dependencies: Note any external tool requirements (like Tailwind CSS)
If plugins aren't working as expected:
- Check plugin names are spelled correctly
- Verify plugins are in the enabled list or group
- Ensure plugins aren't in the disabled list
- Check for external tool dependencies
- Use
gengen pluginsto inspect current status