Skip to content
generated from jensgro/11ty-starter

Hier entsteht eine neue Heimat für Artikel, Notizen, Codepen und mehr. WiP

Notifications You must be signed in to change notification settings

jensgro/css-weblog

Repository files navigation

Simple Starter-Kit for 11ty

This starter-template has little to no styling - on purpose. It assembles some clever solutions and basic structuring of an eleventy-site. It is a starter point with working Sass transforamtion and many more. But styling, structure and templating is individually. So this project stops before getting too much sold into designing.

The standard-language of the templates is set on German. Please change it in the data-file "metadata.json", when necessary.

The structure of the project was chosen after watching a talk by Jérôme Coupé, He wrote is thoughts down in a short and (in my view) important article: Structuring Eleventy projects

Some soultions like the shortcodes and some filters were taken from the great starter project eleventy excellent by Lene Saile.

The variables in the frontmatter (or *.json)

  • layout defines the used layout-file.
  • title will become the page title and the content of h1
  • subline will become the subline (optional)
  • permalink will overwrite the usual filename. This is an eleventy-variable.
  • bodyClass will become the class of the body-element
  • eleventyNavigation has a least one attribute: key which sorts the page to a navigation category. A second possible option is order. More about the navigation-plugin can be found in the documentation.

The categories

The order of categories in _data/categories.json will be the displayed order.

The titlewill be the displayed headline, the cat is the variable with which the sorting takes place. The folder name is reflected in the value of the cat-variable. The collection is constructed via tag. The tag is placed globally inside the local json inside the respective folfer, e.g. "css-grid.json inside the folder "css-grid".

Helpful 11ty-links

11ty introductions

About

Hier entsteht eine neue Heimat für Artikel, Notizen, Codepen und mehr. WiP

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published