/.com

A starter kit for Eleventy v0.11.0 and Forestry CMS, based on gulp v4

Primary LanguageJavaScript

🌻 Smix

A gulp-based starter for Static Site Generators, preconfigured for @11ty/eleventy and Forestry CMS

Framework

  • β™₯ Eleventy 0.11.0 out of the box
    • Date filters for a friendly version such as 10 March 2020, and ISO8601 (also RFC822 compatible)
    • getUrl shortcode similar to Jekyll's post_url and link liquid tags
    • Custom rendering engine for HTML files - Liquid v9
      • Adds support for missing filters such as where and improves performance
  • πŸ›‹ Preconfigured for Forestry CMS.
    • Sign up, log in, look for the Deploy admin option.
    • Everything else is set up for you already. :)
  • πŸ’Indie publishing and reading experience
    • microformats2 support for h-card, h-entry, and h-feed out of the box
  • πŸ‘©β€πŸ’» Modern JavaScript
    • Transpilation via Babel
      • Support for ES2015 JavaScript syntax
      • Support for ES2017 async/await syntax
    • Module bundling via Browserify
  • 🎨 PostCSS
    • Includes: imports, nesting, purge, minification, autoprefixer
    • TailwindCSS, configured to strip out unused classes from production builds
    • Easily build a dark mode using the included dm screen type: dm:bg-gray-900
  • πŸ” SEO and more
    • Meta tags for social networks (Open Graph/Twitter)
    • Sitemap with changeFrequency; robots.txt (please also see issue #7)
    • An Atom feed with support for both published and updated dates on articles
    • Support for content-description meta tag
  • πŸ“– A sane fonts setup
    • The font-sans class is configured to use system-default fonts
    • Include fonts locally for enhanced privacy of your visitors
    • typeset for professional looking content
  • πŸ’ͺ Minified assets on production
  • πŸ“” Prettier and editorconfig
  • πŸ”§ Modular gulp task files for easy configuration and modification

To-Do

  • Reload automatically after our assets change (filed issue here, waiting for response/PR approval). Please reload manually for now.
  • Webmentions, incoming and outgoing, only from/to other IndieWeb sites
  • System default serif font class
  • Scheduled blog posts
  • Lazy-load images
  • Responsive images

How to Use

Local Development

  • nvm use
  • npm install
  • npm run dev
  • Open localhost:8080 on your browser

Production

  • npm run prod