This website is being build using Eleventy site generator (using the v2.0.1 release).
- Make a directory and navigate to it:
mkdir web-engineering
cd web-engineering
- Clone this Repository
git clone https://github.com/gwagner57/web-engineering.git .
Optional: Review .eleventy.js and package.json to configure the site’s options and data.
- Install dependencies
npm install
- Run Eleventy
Generate a production-ready build to the _site folder:
npx @11ty/eleventy
Or build and host on a local development server:
npx @11ty/eleventy --serve |or| npm start
Or you can run debug mode to see all the internals.
- Using Eleventy v2.0.1 with zero-JavaScript output.
- Content is exclusively pre-rendered (this is a static site).
- Can easily deploy to a subfolder without changing any content
- All URLs are decoupled from the content’s location on the file system.
- Configure templates via the Eleventy Data Cascade
Deploy this Eleventy site in just a few clicks on these services:
- Get your own Eleventy web site on CloudFlare
- If you run Eleventy locally you can use
_sitefolder to check the output of the website. - Deployment of website by connecting to the GitHub Repository to CloudFlare.
- On the build configurations in CloudFlare edit as noted:
- Framework present:
Eleventy - Build command:
npx eleventy - Build output directory:
_site - Read more about Deploying an Eleventy project to the web.
src/index.htmlis the main homepage./_includes/has the all the blog posts, forum posts, tutorials and all other html files which are needed to build the website.- The
_includes,assetsfolders in your input directory will be copied to the output folder (viaaddPassthroughCopyin the.eleventy.jsfile). - This project uses two Eleventy Layouts:
_includes/layouts/base.html: the top level HTML structure_includes/layouts/basetutorials.html: also top level HTML structure
- Also, you can find two "head" files which are used to build the webpages, and contain the CSS links.
_includes/basehead.html_includes/basehead.html