Skeleventy为您提供了坚实的基础,以构建快速且易于访问的静态网站。查看演示站点。
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为我们在WebPack顶部提供了一个不错的API层。 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 Gorko我决定取消tailly逆权,纯粹是为了简单性和可维护性(尤其是对于新开发人员而言)。 Not having too much to begin with and adding in what you need, will lead to a simpler, more maintainable codebase. Gorko允许您添加大量可重复使用的公用事业课程,以帮助保持代码干燥。归功于安迪·贝尔(Andy Bell)制造这款方便的小工具
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没有响应式响应图像,主要原因是:最好使用CDN。查看有关用Cloudinary设置高度的教程。