Snowlake Jekyll documentation

Jekyll Site Configuration Guide

The config.yml file is the central configuration file for a Jekyll website. It controls site-wide settings, plugins, collections, pagination, and other…

Overview

The _config.yml file is the central configuration file for a Jekyll website. It controls site-wide settings, plugins, collections, pagination, and other critical aspects of your site’s behavior.

Site Identity and URL Configuration

baseurl: "" 
url: "https://snowlake.tortoizthemes.com"
permalink: "/:title"

Parameters

  • baseurl: Subpath of your site (e.g., /blog)

    • Used when your site is hosted in a subdirectory
    • Leave empty for root-level deployment
    • When it is set, Snowlake adds it to every link and image path at build time, so keep writing paths from the site root (/contact/, /assets/images/photo.webp)
    • On GitHub Pages the included workflow sets it for you; see Deploy to GitHub Pages
  • url: Base hostname and protocol

    • Defines the complete base URL for your site
    • Important for generating absolute URLs and SEO
    • Replace the demo address with your own domain, such as https://example.com (no trailing slash). Social share links and preview images (og:url, og:image) are built from it, so they point at the wrong site until you change it
  • permalink: URL structure for blog posts

    • :title generates URLs based on the post’s title
    • Alternatives:
      • /:year/:month/:day/:title/
      • /:categories/:title/

Plugins Configuration

plugins:
  - jekyll-feed
  - jekyll-paginate-v2
  - jekyll-archives
  - jekyll-sitemap

Installed Plugins

  1. jekyll-feed: Generates an RSS/Atom feed for your posts
  2. jekyll-paginate-v2: Advanced pagination for Jekyll
  3. jekyll-archives: Automatic archive page generation
  4. jekyll-sitemap: Writes sitemap.xml for search engines. To leave a page out, add sitemap: false to its front matter.

Collections Definition

collections:
  authors:
    output: true
  shop_items:
    output: true
    permalink: /shop/:name
  portfolio:
    output: true
    permalink: /portfolio/:name

Collection Types

  • authors: Author profile pages
    • output: true generates individual pages for each author
  • shop_items: Product pages
    • Custom permalink structure
  • portfolio: Portfolio item pages
    • Generates individual portfolio pages

Collection Properties

  • output: Determines if collection items generate standalone pages
  • permalink: Custom URL structure for collection items

Pagination Configuration

pagination:
  enabled: true
  debug: false
  collection: 'posts'
  per_page: 5
  permalink: '/page/:num/'
  sort_field: 'date'
  sort_reverse: true

Key Pagination Settings

  • enabled: Turns pagination on/off
  • debug: Enables pagination debugging
  • collection: Source collection for pagination
  • per_page: Number of items per page
  • permalink: URL structure for paginated pages
  • sort_field: Field used for sorting posts
  • sort_reverse: Reverses post order

Advanced Pagination Options

  • trail: Controls pagination trail display
  • limit: Limits total paginated pages
  • category/tag: Optional filtering
  • locale: Internationalization support

Jekyll Archives Configuration

jekyll-archives:
  enabled:
    - tags
    - categories
  layouts:
    tag: tag
    category: category
  permalinks:
    tag: '/tag/:name/'
    category: '/category/:name/'

Archive Generation

  • Automatically creates archive pages for tags and categories
  • Specifies custom layouts for tag and category pages
  • Defines custom permalink structures

Default Layouts

defaults:
  - scope: { path: "", type: pages }
    values: { layout: default }
  - scope: { path: "", type: posts }
    values: { layout: posts/post }
  - scope: { path: "", type: shop_items }
    values: { layout: product }
  - scope: { path: "", type: authors }
    values: { layout: author_page }

A page, post, shop item or author file that doesn’t set layout: gets the one listed here. A file that sets its own layout: keeps it.

Feed Configuration

The feed reads title: and description: from the top of _config.yml. Keep them the same as in _data/general_settings.yml, which the rest of the site uses.

feed:
  collections:
    posts:
      path: "/index.xml"

RSS/Atom Feed Settings

  • Generates XML feed for blog posts
  • Customizable feed path

Syntax Highlighting

highlighter: rouge
  • Uses Rouge for code syntax highlighting
  • Supports multiple programming languages

Best Practices

  1. Keep _config.yml well-organized
  2. Use meaningful permalink structures
  3. Enable only necessary plugins
  4. Configure collections thoughtfully
  5. Test pagination and archive generation

Troubleshooting

  • Restart Jekyll server after config changes
  • Check console for plugin-related warnings
  • Validate YAML syntax
  • Use jekyll build --verbose for detailed output

Performance Considerations

Snowlake does two things for speed on its own:

  • Lazy images. Images below the first block of a page load only when the visitor scrolls near them. The logo and the first image of the page load straight away. To turn this off, add lazy_images: false to _config.yml. To load one image straight away, give it loading="eager".
  • Slider Revolution only where it’s used. The slider’s scripts and styles load only on pages that contain a slider (an element with the class rev_slider). If you build a slider in a way that hides that class, add slider_revolution: true to the page’s front matter.

Other tips:

  • Limit the number of plugins
  • Use pagination to reduce page load times
  • Optimize collection definitions
  • Minimize complex permalink structures

Version Compatibility

Tested with:

  • Jekyll 4.x
  • jekyll-paginate-v2 1.9.x
  • jekyll-archives 2.2.x

Note: Always check plugin compatibility and Jekyll version requirements.