Giter Site home page Giter Site logo

blog's Introduction

eleventy-dot-js-blog

A starter project showing how to build a blog with the Eleventy static site generator using JavaScript templates (*.11ty.js).

Netlify Status

Demo

Summary

The layouts are written entirely in vanilla JavaScript (files with the *.11ty.js extension). Eleventy processes those templates and creates prerendered copies of the site HTML.

Features

  • πŸ’― Lighthouse scores for
    • πŸ’¨ Performance
    • β™Ώ Accessibility
    • β˜‘οΈ Best practices
    • πŸ” Search Engine Optimization
  • 🏸 Lightweight front end
    • πŸ•Έ Semantic HTML
    • 🎨 Progressively-enhanced, modular CSS
    • 🍦 Vanilla JavaScript templates
  • πŸŽ›οΈ Customizable design and data options
  • 🍬 Choose between emoji favicons and the Real Favicon Generator
  • πŸ’‘ Dark/light mode based on user’s system preferences
  • πŸ”£ Multilingual support (instructions in ./content/README.md and ./_data/README.md)
  • πŸ”– Smart pagination
  • πŸ—’οΈ Extensive inline documentation

Project Roadmap

Here’s a list of new features being considered. Submit a feature request to add to this list!

  • 🎚️ Dark/light mode toggle #14
  • 🏷️ Tag archives for blog (coming with Computed Data in Eleventy v0.11.0) #7
  • πŸ—“ Date archives for blog #16
  • πŸ’Œ Contact form (using Netlify Forms) #17
  • πŸ“‘ RSS feed for blog posts #3
  • πŸ—ΊοΈ Sitemap #54
  • πŸ” Search #18
  • πŸ“„ Documentation site #19
  • πŸ“£ Webmentions #20
  • πŸ’¬ Comments #21
  • πŸ“ Integrate with Netlify CMS #22
  • βš™οΈ Service worker to cache content for offline access #23
  • πŸ–ŒοΈ Apply logo/branding assets #24
  • πŸ–οΈ Syntax highlighting for code blocks #25
  • ✍️ Author information posts (options for mulitple authors and guest submissions) #26

Getting started

Run a local copy of this site on your computer.

Install Node.js on your machine (see 11ty documentation for version requirements).

Then enter the following commands into your terminal:

1. Clone this repository and all its dependencies

git clone [email protected]:reubenlillie/eleventy-dot-js-blog.git my-blog-directory-name

2. Go to the working directory

cd my-blog-directory-name

Specifically take a look at the file named .eleventy.js to see if you want to configure any Eleventy options differently.

3. Install the project dependencies with NPM

npm install

4. Edit the .js files in the _data directory with your site information

5. Run Eleventy

npx eleventy

Or build and host locally for local development

npx eleventy --serve

Or build automatically when a template changes

npx eleventy --watch

Or in debug mode

DEBUG=* npx eleventy

Publish your own copy

The command npm run build will generate a copy of the site files in a _site directory, which you can deploy with any hosting service.

Deploy to Netlify

Β© 2020 by Reuben L. Lillie

blog's People

Contributors

reubenlillie avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.