A web site.
Find a file
2022-11-24 14:45:46 +01:00
config markdown config, fixed externally linked anchor links 2022-11-11 11:36:49 +01:00
src more info in readme 2022-11-24 14:45:46 +01:00
.eleventy.js some bigger changes, detailed in readme 2022-11-24 13:48:09 +01:00
.eleventyignore first commit 2022-10-10 14:41:35 +02:00
.gitignore first commit 2022-10-10 14:41:35 +02:00
.prettierignore some bigger changes, detailed in readme 2022-11-24 13:48:09 +01:00
.prettierrc first commit 2022-10-10 14:41:35 +02:00
netlify.toml various tests 2022-10-14 15:00:52 +02:00
package-lock.json some bigger changes, detailed in readme 2022-11-24 13:48:09 +01:00
package.json some bigger changes, detailed in readme 2022-11-24 13:48:34 +01:00
postcss.config.js first commit 2022-10-10 14:41:35 +02:00
readme.md more info in readme 2022-11-24 14:45:46 +01:00
tailwind.config.js rename _assets to assets and keeping underscores for dev folders only 2022-10-14 09:59:05 +02:00

Eleventy starter

Very opiniated Eleventy starter based on the workflow suggested by Andy Bell's https://buildexcellentwebsit.es/.

Preview

https://eleventy-excellent.netlify.app/

Features

This starter includes:

  • The whole CSS workflow as suggested by buildexcellentwebsit.es
  • Accessible site navigation, editable in src/_data/navigation.js
  • Image optimization with Eleventy-img (see blog post)
  • Youtube embed with lite-youtube (see blog post)
  • Easy resource fetching with eleventy-fetch (see blog post)
  • Syntax highlighting via eleventy-plugin-syntaxhighlight (see blog post)
  • SEO basics (XML-sitemap, metadata)
  • dayjs handling dates & times
  • 301 redirects for netlify
  • Advanced markdown handling
  • Bundling via esbuild
  • RSS feed
  • Links to spcial networks in footer
  • Mastodon domain verification snippet

First steps

  • Important: edit meta data in src/_data/meta.js, it's being used all over the template.
  • Search for 'eleventy-excellent.netlify.app'. You'll find an entry in src/assets/css/global/global-styles.css. Replace with your own domain.
  • Edit your social media in src/_data/social.js and src/_includes/icons. If you add new icons they must be prefixed with "social-". By default you have rss, mastodon, twitter, ko-fi, linkedin and github. Great resource: https://lucide.dev/
  • Not required, but recommended: Delete github.js in src/_data/github.js and the blog posts, as these serve only as an example.
  • Edit your preferences (colors, fluid text sizes etc.) in src/assets/css/design-tokens.
  • Optional: set your (favicon) icons in src/assets/images/favicon.

Deploy directly to Netlify

Deploy to Netlify

Development

Install dependencies

npm install

Working locally

Starts watch tasks to compile when changes detected

npm start

Creating a production build

Minify JS, inline and minify CSS.

npm run build

Logbook

22-11-24

  • updated required node version in package.json
  • meta.js now controls most of the templates defaults
  • added RSS feed, because of course!
  • Made twitter and other meta data OPTIONAL. Added Mastodon.

22-11-04

  • Adding blog posts for feature explanation

22-10-30

  • WebC in own branch
  • simplify main branch

22-10-03

  • first commit. Updated

22-10-04

  • All markdown syntax set.

Credits and Thank yous

Andy Bell

His CSS methodology makes sense to me. It also goes hand in hand with the Every Layout solutions he co-authors. An ardent opponent of the utility class framework Tailwind CSS. But has recently published an approach that incorporates Tailwind CSS into his methodology. This is built into my website and I'm working on tweaking it. I learned how to use Eleventy in 2020 with his (now free) course.

Heydon Pickering

I strongly orientate myself on Heydon's approaches and love his books.

Zach Leatherman

He is developing Eleventy.

Stephanie Eckles

She provides a lot of resources for Eleventy and modern CSS.

Aleksandr Hovhannisyan

I love order and structure. Aleksandr does this in an exemplary way, which is why I based the structure of eleventy.js on his personal site. The 301 redirect solution I'm using is from his blog.

Oliver Schöndorfer

Oliver is a type expert. He writes the Pimp my Type Newsletter where I dscovered the font I'm using for this website.

Manuel Matuzović

Manuel is an accessibility expert. The menu I'm using is from one of his articles on web.dev.