Skeleventy vous donne un fond de teint solide pour construire des sites Web statiques rapides et accessibles. Affichez le site de démonstration.
Node v10+
git clone https://github.com/josephdyer/skeleventy.git
cd
into the project folder and run npm install
npm run dev
Tip: Eleventy has live reload baked in! site/
contains all the global data, templates and contentutilities/
contains Eleventy helper filters
and transforms
index.md
filecss/
for compiled CSSjs/
for compiled JavaScriptimages/
contains our site's images, an SVG icon sprite and a folder for meta images (OG, Twitter etc) Laravel Mix nous donne une belle couche API au-dessus de WebPack. Skeleventy uses a simplistic set up, but you can take advantage of extending Mix with custom Webpack configurations, code splitting and plugins such as PostCSS, if you so wish.
You'll find the site's uncompiled SCSS and JS within resources/
where Mix will be watching these directories for any changes. Tip: it's best to always restart the server when creating any new partials or folders
scss/
is structured into opinionated sub folders_config.scss
file is where you can change the site's colours and the utility classes generated by GorkoJ'ai décidé de retirer le vent arrière en faveur de Gorko, uniquement pour sa simplicité et sa maintenabilité (en particulier pour les nouveaux développeurs). Not having too much to begin with and adding in what you need, will lead to a simpler, more maintainable codebase. Gorko vous permet d'ajouter une pincée de cours d'utilité réutilisables pour aider à garder votre code à sec. Crédit à Andy Bell pour avoir fait ce petit outil pratique
utilities/
contains any global utility/helper functionsmodules/
contains your site's actual JavaScript, all kept neat and tidy within their respective modular subfoldersmain.js
using import '@modules/example-module'
webpack.mix.js
fileSkeleventy n'a pas d'images réactives cuites, la raison principale étant: il est préférable d'utiliser CDN. Consultez ce tutoriel sur la configuration de Elewty avec Cloudinary.