Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Personal boilerplate for Eleventy projects

License

NotificationsYou must be signed in to change notification settings

melanierichards/palindrome

Repository files navigation

Personal boilerplate for Eleventy projects

Not Included

Heavier-lift techniques that may not be appropriate for every project, but can be referenced from another project:

TechniqueProject with example
Netlify comment formsWorld Snacks
Paginating tagged itemsPersonal website
WebmentionsPersonal website

Setup from Template Checklist

  • Updatepackage.json,_data/site.json, andfeed.njk with project details
  • If not using posts: deletefeed.njk, RSS code ineleventy.js, post and pagination bits in_includes
  • Go thrueleventy.js and un-comment or delete utilities
  • Update or removeicon-sprite.njk
  • Updatehead.njk with any info for: RSS, social metadata, icons
  • Update images referenced inmanifest.webmanifest

To build

  1. InstallNode :)
  2. Clone the repo
  3. Runnpm install
  4. Runnpm run start
  5. Visitlocalhost:8080

Commands

CommandPurpose
npm run startServe project + watch Sass
npm run buildBuild project
npm run checksValidate HTML & lint JS
npm run lintRun eslint
npm run lint:fixRun eslint and fix issues
npm run validateRun html-validate

Front-Matter

---title: date: 2021-##-##tags: ["posts", "foo", "bar"]featureSrc: (Omit "-m", which is added automatically)featureExt: featureAlt: ---

Media

Blog image sizes

SizePX width
s600
m800
l1200
xl2000

Responsive image include

Filename, extension, max size, alt text, classes:

{% responsiveImage "melanierichards-", "jpg", "xl", "Alt", "" %}
  • Max size can bel orxl
  • Classes can includec-media--limit-width

SVG sprite references

<svg role="image" focusable="false" viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg">  <title>Accessible label</title>  <use href="#" y="-20"></svg>

Reference

About

Personal boilerplate for Eleventy projects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2026 Movatter.jp