Skip to content

Commit

Permalink
Merge branch 'patch-1' of https://github.com/Flimm/11ty-website into …
Browse files Browse the repository at this point in the history
…Flimm-patch-1

# Conflicts:
#	index.md
  • Loading branch information
zachleat committed Feb 17, 2022
2 parents 6768e27 + bb91d96 commit 7706261
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/_data/config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module.exports = {
outdated: false,
prerelease: false,
eleventyMinimumNodeVersion: 12,
githubEdit: "https://github.com/11ty/11ty-website/blob/master/",
now: new Date()
};
2 changes: 1 addition & 1 deletion src/docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ communityLinksKey: getting-started
---
# Getting Started

Eleventy is [available on npm](https://www.npmjs.com/package/@11ty/eleventy) and **requires version 10 of [Node.js](https://nodejs.org/) or higher.**
Eleventy is [available on npm](https://www.npmjs.com/package/@11ty/eleventy) and **requires version {{ config.eleventyMinimumNodeVersion }} of [Node.js](https://nodejs.org/) or higher.**

_Don’t include `~ $` or `~/eleventy-sample $` when you run these commands._

Expand Down
7 changes: 3 additions & 4 deletions src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,11 @@ eleventyComputed:

## Quick Start

Eleventy {% latestVersion versions, config %} requires Node 12 or newer. Use `node --version` on the command line to find your local Node version.
Eleventy {% latestVersion versions, config %} requires Node {{ config.eleventyMinimumNodeVersion }} or newer. Use `node --version` on the command line to find your local Node version.

```bash
npm install -g @11ty/eleventy
echo '# Page header' > README.md
eleventy
npx @11ty/eleventy
```

This will compile any files matching valid input [template file extensions](/docs/languages/) (`.md` is one of them) in the current directory into the output folder (defaults to `_site`).
Expand All @@ -40,7 +39,7 @@ Writing _site/README/index.html from ./README.md (liquid)
Wrote 1 file in 0.03 seconds ({% latestVersion versions, config %})
```

Run `eleventy --serve` to start up a web server. Then open `http://localhost:8080/README/` in your web browser of choice to see your Eleventy output.
Run `npx @11ty/eleventy --serve` to start up a web server. Then open `http://localhost:8080/README/` in your web browser of choice to see your Eleventy output.

➡ Keep going! Read a longer [Getting Started guide](/docs/getting-started/) or check out the full [**Documentation for {% latestVersion versions, config %}**]({{ "/docs/" | url }}).

Expand Down

0 comments on commit 7706261

Please sign in to comment.