You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Ru Singh ea3d7d65cc
Merge pull request #33 from hirusi/dependabot/npm_and_yarn/lodash-4.17.21
1 day ago
.forestry Add new content to Forestry config 1 year ago
eleventy fix: default node dev env to true if no env set 9 months ago
gulp_tasks Default to linux command line for cleanup instead of npm module 1 year ago
src fix: SEO improvements 8 months ago
.babelrc Remove more react, set up a data, layouts, post in eleventy 1 year ago
.editorconfig Use eleventy's watcher and server, configur prettier 1 year ago
.eleventy.js feat: switch to JS to preprocessing for safe external links 9 months ago
.eleventyignore Update directory stucture, gulp tasks, and move blog/ to articles/ 1 year ago
.gitignore Improve dir structure; allow importing components without jsx ext; update gitignore 2 years ago
.nvmrc Update node to LTS/erbium 1 year ago
.prettierignore Husky to ignore markdown files, can upset front-matter 1 year ago
.prettierrc Use eleventy's watcher and server, configur prettier 1 year ago
.tool-versions feat: support asdf-nodejs via .tool-versions... [#24] 5 months ago
CHANGELOG.md docs: link to commit diff between tags for v0.0.8 release 1 month ago
LICENSE misc: add a license 5 months ago
README.md docs: add asdf install for local setup, cleanup 1 week ago
gulpfile.babel.js build: fix develop script to watch assets 9 months ago
netlify.toml netlify: add config file 5 months ago
package-lock.json Merge pull request #33 from hirusi/dependabot/npm_and_yarn/lodash-4.17.21 1 day ago
package.json chore: release v0.0.8 1 month ago
paths.js Update directory stucture, gulp tasks, and move blog/ to articles/ 1 year ago
tailwind.config.js Remove more react, set up a data, layouts, post in eleventy 1 year ago

README.md

🌻 Smix

A gulp-based starter for Static Site Generators, preconfigured for Eleventy and Forestry CMS.

Framework

  • Eleventy 0.12.1 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 and Netlify.
    • For Forestry
      • Import into Forestry
      • In the general site settings click on Deploy admin option to host the CMS on your domain.
      • Everything else is already set up for you. :)
    • For Netlify...
      • Sign up, log in, add a New site.
      • Out of the box staging builds include drafts whereas production builds do not.
  • 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 as the choice of CSS transpiler.
    • Includes: imports, nesting, purge, minification, autoprefixer.
    • TailwindCSS (v1), 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 other behind-the-scenes goodies.
    • 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 for consistent formatting.
  • 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.
  • System default serif font class.
  • Scheduled blog posts.
  • Lazy-load images.
  • Responsive images.

How to Use

Local Development

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

Staging

ELEVENTY_ENV must be set to staging.

  • npm run staging

Production

ELEVENTY_ENV must be set to production.

  • npm run prod