Skip to content
/ fruits-express Public template

Simple data-oriented & multi-language starter with Eleventy, TailwindCSS & Fontsource

License

Notifications You must be signed in to change notification settings

TigersWay/fruits-express

Repository files navigation

fruits-express GitHub tag (latest by date) GitHub last commit GitHub issues

Simple data-oriented & multi-language starter with Eleventy & TailwindCSS

Dependencies:

  • @11ty/eleventy

Demo: Netlify Cloudflare Render Vercel Github

Fontsource

An updating monorepo full of self-hostable Open Source fonts bundled into individual NPM packages!

In the last canary - @11ty/Eleventy 2.0.0-canary.12 - has been introduced what Zach called "For-free passthrough copy". It should be the new smooth and light way to deal with "static assets".

Specifically hosting Google - or not - fonts: Introduction

"Generic builder"

You can use the usual npm run build script to generate every configuration you should need (command line or dotenv-cli):

  • SITE_URL=https://fruits-express.xyz CLOUDINARY_CDN_URL=https://res.cloudinary.com/myaccount npm run build
  • SITE_URL=https://yourname.github.io PATHPREFIX=fruits-express npm run build
  • SITE_URL=https://example.com PATHPREFIX=abcd npm run build

Available variables are:

  • SITE_URL (default to https://fruits-express.com)
  • CLOUDINARY_CDN_URL (no default)
  • PATHPREFIX (no default)

CHANGELOG

  • v2.4.1

    • Eleventy v2.0.0
  • v2.4.0

    • Eleventy 2.0.0-canary.15
      • eleventy.config.js is now the default config file
      • the new HTML <base> plugin allows us to get rid of the url filter
  • v2.3.0

    • Eleventy 2.0.0-canary.12 & "For-free passthrough copy"
    • FontSource is now available and useful
      eleventyConfig.addPassthroughCopy({ 'node_modules/@fontsource/sarabun/files/*{latin,thai}-{400,700}*.woff2': 'css/files' });
  • v2.2.0

    • Added a "Generic builder"
    • Fix images url without CDN
  • v2.1.0

    • Added github-pages demo (great to check the url filter)
  • v2.0.1

    • Fix Atom feed (Links & minification)
  • v2.0.0

    • Additions & New features
      • Mono dataset but multi-language and some light markdown
      • New Eleventy dev-server with express-static middleware
      • html-minifier
      • RSS/Atom
      • sitemap.xml
    • Updates:
      • Dependencies:
        • Eleventy v2.x among others
        • Concurrently (npm-run-all is clearly dead)
      • Sarabun v13 (font)
      • DataSet images to png
  • v1.0.0

    • Eleventy v1.x
    • TailwindCSS v3.x