Compare commits

..

15 Commits

Author SHA1 Message Date
frank
aec0f79928 getting xmitter.net on 11ty 2024-11-01 18:51:44 -04:00
Zach Leatherman
e8f8a543de Update link 2024-10-01 16:25:05 -05:00
Zach Leatherman
0859827f69 Reorder demos 2024-10-01 16:15:36 -05:00
Zach Leatherman
bff655c8a2
Merge pull request #184 from 11ty/v9
Eleventy Base Blog v9 (using Eleventy v3 and ESM)
2024-10-01 13:58:28 -07:00
Zach Leatherman
9b0cb972e0 Change navigation order 2024-10-01 15:54:03 -05:00
Zach Leatherman
c79179c2bf Deployment copy tweaks 2024-10-01 15:49:23 -05:00
Zach Leatherman
0a5175f4f2 Yet another README copy tweak 2024-10-01 15:48:55 -05:00
Zach Leatherman
df19690716 Merge branch 'v9' of github.com:11ty/eleventy-base-blog into v9 2024-10-01 15:47:51 -05:00
Zach Leatherman
a13b19d5c2 Minor tweak to readme 2024-10-01 15:47:38 -05:00
Zach Leatherman
429f29fb23
Merge branch 'main' into v9 2024-10-01 13:45:14 -07:00
Zach Leatherman
231c29b136 Update demo URLs 2024-07-16 09:39:53 -05:00
Zach Leatherman
3ceaafc400
Merge pull request #153 from Zearin/patch-1
Add JSDoc (for completion) eleventy.config.js
2024-05-31 20:42:15 -07:00
Zach Leatherman
76b018ddc8
Merge pull request #176 from charliegroll/patch-1
Update README.md to correct Netlify Drop link
2024-04-30 15:23:29 -07:00
Charlie
b8ba315770
Update README.md to correct Netlify Drop link 2024-04-30 16:12:44 -06:00
Zearin
f30c79c0d9
Add JSDoc (for completion) eleventy.config.js 2023-05-04 16:36:08 -04:00
4 changed files with 12 additions and 25 deletions

View File

@ -1,6 +1,6 @@
# eleventy-base-blog v9 # eleventy-base-blog v9
A starter repository showing how to build a blog with the [Eleventy](https://www.11ty.dev/) site generator (using the [v2.0 release](https://www.11ty.dev/blog/eleventy-v2/)). A starter repository showing how to build a blog with the [Eleventy](https://www.11ty.dev/) site generator (using the [v3.0 release](https://github.com/11ty/eleventy/releases/tag/v3.0.0)).
## Getting Started ## Getting Started
@ -73,7 +73,7 @@ Or you can run [debug mode](https://www.11ty.dev/docs/debugging/) to see all the
- Accessible deep links to headings - Accessible deep links to headings
- Generated Pages - Generated Pages
- Home, Archive, and About pages. - Home, Archive, and About pages.
- [Feeds for Atom and JSON](https://www.11ty.dev/docs/plugins/rss/) - [Atom feed included (with easy one-line swap to use RSS or JSON](https://www.11ty.dev/docs/plugins/rss/)
- `sitemap.xml` - `sitemap.xml`
- Zero-maintenance tag pages ([View on the Demo](https://eleventy-base-blog.netlify.app/tags/)) - Zero-maintenance tag pages ([View on the Demo](https://eleventy-base-blog.netlify.app/tags/))
- Content not found (404) page - Content not found (404) page
@ -82,20 +82,19 @@ Or you can run [debug mode](https://www.11ty.dev/docs/debugging/) to see all the
- [Netlify](https://eleventy-base-blog.netlify.app/) - [Netlify](https://eleventy-base-blog.netlify.app/)
- [Vercel](https://demo-base-blog.11ty.dev/) - [Vercel](https://demo-base-blog.11ty.dev/)
- [Remix on Glitch](https://glitch.com/~11ty-eleventy-base-blog)
- [Cloudflare Pages](https://eleventy-base-blog-d2a.pages.dev/) - [Cloudflare Pages](https://eleventy-base-blog-d2a.pages.dev/)
- [Remix on Glitch](https://glitch.com/~11ty-eleventy-base-blog)
- [GitHub Pages](https://11ty.github.io/eleventy-base-blog/) - [GitHub Pages](https://11ty.github.io/eleventy-base-blog/)
## Deploy this to your own site ## Deploy this to your own site
Deploy this Eleventy site in just a few clicks on these services: Deploy this Eleventy site in just a few clicks on these services:
- Read more about [Deploying an Eleventy project](https://www.11ty.dev/docs/deployment/) to the web.
- [Deploy this to **Netlify**](https://app.netlify.com/start/deploy?repository=https://github.com/11ty/eleventy-base-blog) - [Deploy this to **Netlify**](https://app.netlify.com/start/deploy?repository=https://github.com/11ty/eleventy-base-blog)
- [Deploy this to **Vercel**](https://vercel.com/import/project?template=11ty%2Feleventy-base-blog) - [Deploy this to **Vercel**](https://vercel.com/import/project?template=11ty%2Feleventy-base-blog)
- Look in `.github/workflows/gh-pages.yml.sample` for information on Deploying to **GitHub Pages**. - Look in `.github/workflows/gh-pages.yml.sample` for information on Deploying to **GitHub Pages**.
- [Try it out on **Stackblitz**](https://stackblitz.com/github/11ty/eleventy-base-blog) - [Try it out on **Stackblitz**](https://stackblitz.com/github/11ty/eleventy-base-blog)
- If you run Eleventy locally you can drag your `_site` folder to [`drop.netlify.com`](https://drop.netlify.com/) to upload it without using `git`.
- Read more about [Deploying an Eleventy project](https://www.11ty.dev/docs/deployment/) to the web.
### Implementation Notes ### Implementation Notes
@ -104,9 +103,6 @@ Deploy this Eleventy site in just a few clicks on these services:
- Use the `eleventyNavigation` key (via the [Eleventy Navigation plugin](https://www.11ty.dev/docs/plugins/navigation/)) 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`. - Use the `eleventyNavigation` key (via the [Eleventy Navigation plugin](https://www.11ty.dev/docs/plugins/navigation/)) 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`. - 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. - 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](https://www.11ty.dev/docs/layouts/): - This project uses three [Eleventy Layouts](https://www.11ty.dev/docs/layouts/):
- `_includes/layouts/base.njk`: the top level HTML structure - `_includes/layouts/base.njk`: the top level HTML structure
- `_includes/layouts/home.njk`: the home page template (wrapped into `base.njk`) - `_includes/layouts/home.njk`: the home page template (wrapped into `base.njk`)

View File

@ -1,11 +1,11 @@
export default { export default {
title: "Eleventy Base Blog v9", title: "XMITTERDOTNET",
url: "https://example.com/", url: "https://xmitter.net/",
language: "en", language: "en",
description: "I am writing about my experiences as a naval navel-gazer.", description: "A small personal website",
author: { author: {
name: "Your Name Here", name: "Cobweb",
email: "youremailaddress@example.com", email: "cobweb@xmitter.net",
url: "https://example.com/about-me/" url: "https://xmitter.net/about/"
} }
} }

View File

@ -1,16 +1,7 @@
--- ---
layout: layouts/base.njk layout: layouts/base.njk
--- ---
<!-- Delete this block, which will also remove the component CSS from the bundle -->
{%- css %}{% include "public/css/message-box.css" %}{% endcss %}
<div class="message-box">
<ol>
<li>Edit <code>_data/metadata.js</code> with your blogs information.</li>
<li>(Optional) Edit <code>eleventy.config.js</code> with your <a href="https://www.11ty.dev/docs/config/">configuration preferences</a>.</li>
<li>Delete this message from <code>_includes/layouts/home.njk</code>.</li>
</ol>
<p><em>This is an <a href="https://www.11ty.dev/">Eleventy project</a> created from the <a href="https://github.com/11ty/eleventy-base-blog"><code>eleventy-base-blog</code> repo</a>.</em></p>
</div>
<!-- Stop deleting --> <!-- Stop deleting -->
{{ content | safe }} {{ content | safe }}

View File

@ -54,7 +54,7 @@ export default async function(eleventyConfig) {
templateData: { templateData: {
eleventyNavigation: { eleventyNavigation: {
key: "Feed", key: "Feed",
order: 3 order: 4
} }
}, },
collection: { collection: {