LeafComputing.net website
 
 
 
Go to file
Jeremiah Lee 4f64cd6762 chore: update 11ty and Tailwind dependencies 2023-10-19 15:24:26 +02:00
_data Add link preview meta data 2023-04-26 15:08:02 +01:00
_includes Add link preview meta data 2023-04-26 15:08:02 +01:00
content docs: add Nordic APIs link 2023-10-19 15:23:31 +02:00
public Update API Conference slides link 2023-04-28 18:07:13 +01:00
.gitignore Setup Eleventy and Tailwind 2023-04-26 14:36:49 +01:00
LICENSE Initial commit 2023-04-26 10:07:18 +00:00
README.md Setup Eleventy and Tailwind 2023-04-26 14:36:49 +01:00
base.css Setup Eleventy and Tailwind 2023-04-26 14:36:49 +01:00
eleventy.config.drafts.js Setup Eleventy and Tailwind 2023-04-26 14:36:49 +01:00
eleventy.config.images.js Setup Eleventy and Tailwind 2023-04-26 14:36:49 +01:00
eleventy.config.js Setup Eleventy and Tailwind 2023-04-26 14:36:49 +01:00
package-lock.json chore: update 11ty and Tailwind dependencies 2023-10-19 15:24:26 +02:00
package.json chore: update 11ty and Tailwind dependencies 2023-10-19 15:24:26 +02:00
tailwind.config.js Setup Eleventy and Tailwind 2023-04-26 14:36:49 +01:00

README.md

Leaf Computing

This website is built with the Eleventy site generator.

Generate a production-ready build to the _site folder:

npx @11ty/eleventy

Build and host on a local development server:

npx @11ty/eleventy --serve

To deploy, move the _site contents to the pages branch.

Implementation Notes

  • content/about/index.md is an example of a content page.
  • content/blog/ has the blog posts but really they can live in any directory. They need only the posts tag to be included in the blog posts collection.
  • Use the eleventyNavigation key (via the Eleventy Navigation plugin) in your front matter to add a template to the top level site navigation. This is in use on content/index.njk and content/about/index.md.
  • Content can be in any template format (blog posts neednt exclusively be markdown, for example). Configure your projects supported templates in eleventy.config.js -> templateFormats.
  • The public folder in your input directory will be copied to the output folder (via addPassthroughCopy in the eleventy.config.js file). This means ./public/css/* will live at ./_site/css/* after your build completes.
  • Provides two content feeds:
    • content/feed/feed.njk
    • content/feed/json.njk
  • This project uses three Eleventy Layouts:
    • _includes/layouts/base.njk: the top level HTML structure
    • _includes/layouts/home.njk: the home page template (wrapped into base.njk)
    • _includes/layouts/post.njk: the blog post template (wrapped into base.njk)
  • _includes/postslist.njk is a Nunjucks include and is a reusable component used to display a list of all the posts. content/index.njk has an example of how to use it.