realbenben / benoitpatou.dev

my website reworked with eleventy
MIT License
0 stars 0 forks source link

BenoitPatou.dev

Features

Philosophy

Requirements

Getting started

Run the following command on your local environment:

git clone --depth=1 https://github.com/ixartz/Eleventy-Starter-Boilerplate.git my-project-name
cd my-project-name
npm install

Then, you can run locally in development mode with live reload:

npm run dev

Open http://localhost:8080 with your favorite browser to see your blog.

Project structure

.
β”œβ”€β”€ public             # Static files
β”‚   └── assets
β”‚       └── images     # Images not needed by Webpack
└── src
    β”œβ”€β”€ _data          # Eleventy data folder
    β”œβ”€β”€ _includes
    β”‚   └── layouts    # HTML layout files
    β”œβ”€β”€ assets         # Assets folder that needs to be processed by Webpack
    β”‚   β”œβ”€β”€ images
    β”‚   β”‚   └── posts  # Images used in your blog posts (will be compressed by Webpack)
    β”‚   └── styles     # Your blog CSS files
    └── posts          # Your blog posts

Customization

You can easily configure Eleventy Starter Boilerplate. Please change the following file:

Deploy to production

You can see the results locally in production mode with:

npm run serve

The generated HTML and CSS files are minified. It will also removed unused CSS from Tailwind CSS.

You can create an optimized production build with:

npm run build

Now, your blog is ready to be deployed. All generated files are located at _site folder, which you can deploy with any hosting service.

Deploy to Netlify

Clone this repository on own GitHub account and deploy to Netlify:

Netlify Deploy button

Remove Netlify files and Netlify CMS

If you don't use Netlify, you can easily remove all Netlify related files: