1
0
Fork
You've already forked web-materials
0
The website where we publish the episodes of our Web Materials podcast.
  • CSS 64.8%
  • Nunjucks 32.2%
  • JavaScript 3%
Find a file
Vasilis Van Gemert 2465d2babc Small optimisations
2021年10月10日 22:34:47 +02:00
_data Fixed metadata 2021年04月07日 20:53:42 +02:00
_includes Episode 12 2021年10月10日 16:43:17 +02:00
about Removed some clutter 2021年04月07日 20:54:47 +02:00
css Small optimisations 2021年10月10日 22:34:47 +02:00
feed Update image format 2021年06月03日 23:09:59 +02:00
img episode 9 styling 2021年08月23日 14:36:50 +01:00
js episode 11 2021年10月05日 12:02:47 +01:00
posts Small optimisations 2021年10月10日 22:34:47 +02:00
sound added audio to episode 11 2021年10月05日 13:13:34 +01:00
.editorconfig Adds editorconfig for my own sanity. 2018年01月28日 21:26:25 -06:00
.eleventy.js Moar interaction! 2021年05月17日 11:41:14 +02:00
.eleventyignore Ignore 2021年04月06日 08:03:45 +02:00
.gitignore Ignore 2021年04月06日 08:03:45 +02:00
.nvmrc Use a newer Node 2020年10月16日 14:34:09 -05:00
.travis.yml Upgrade node version in travis config 2020年10月16日 14:37:58 -05:00
404.md Updated 404 a bit 2021年04月07日 20:53:20 +02:00
archive.njk Switches to use more obvious markup menu template for eleventy-navigation 2020年01月02日 20:51:47 -06:00
index.njk Minor edits 2021年04月13日 20:34:53 +02:00
LICENSE Updated license name 2018年01月28日 21:27:50 -06:00
netlify.toml Switch to debug for netlify deploy 2018年01月27日 23:44:29 -06:00
package.json Update RSS plugin 2021年03月19日 21:11:17 -05:00
README.md Update README.md 2021年03月31日 16:15:05 +01:00
sitemap.xml.njk Use new eleventyExcludeFromCollections feature in 0.8.0: https://www.11ty.io/docs/collections/#option%3A-exclude-content-from-collections 2019年04月04日 20:49:20 -05:00
tags.njk Support spaces in tags in base blog. 2021年03月17日 16:29:07 -05:00

Web Materials website

This is the website for the Web Materials project, a podcast hosted by Espen Brunborg and Vasilis van Gemert

Based on the Eleventy base blog

Getting Started

1. Clone this Repository

git clone https://github.com/11ty/eleventy-base-blog.git my-blog-name

2. Navigate to the directory

cd my-blog-name

Specifically have a look at .eleventy.js to see if you want to configure any Eleventy options differently.

3. Install dependencies

npm install

4. Edit _data/metadata.json

5. Run Eleventy

npx eleventy

Or build and host locally for local development

npx eleventy --serve

Or build automatically when a template changes:

npx eleventy --watch

Or in debug mode:

DEBUG=* npx eleventy

Implementation Notes

  • about/index.md shows how to add a content page.
  • posts/ has the blog posts but really they can live in any directory. They need only the post tag to be added to this collection.
  • Add the nav tag to add a template to the top level site navigation. For example, this is in use on index.njk and about/index.md.
  • Content can be any template format (blog posts needn’t be markdown, for example). Configure your supported templates in .eleventy.js -> templateFormats.
    • Because css and png are listed in templateFormats but are not supported template types, any files with these extensions will be copied without modification to the output (while keeping the same directory structure).
  • The blog post feed template is in feed/feed.njk. This is also a good example of using a global data files in that it uses _data/metadata.json.
  • This example uses three 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/postlist.njk is a Nunjucks include and is a reusable component used to display a list of all the posts. index.njk has an example of how to use it.