GithubHelp home page GithubHelp logo

robbailiff / eleventy-blog-from-scratch Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 44 KB

A blog made with Eleventy to understand the basics of Static Site Generators

JavaScript 1.06% Nunjucks 70.48% CSS 28.45%

eleventy-blog-from-scratch's Introduction

Eleventy Blog From Scratch

Introduction

This project was started as a way for me to better understand the Eleventy Static Site Generator. I had to deploy an Eleventy site to Netlify as part of part of The Coders Guild JAMStack Web and App Development Course using the Eleventy Base Blog starter template. I wanted to understand how the site generator worked but the source code was difficult to understand so I decided I should start from scratch and build it from the ground up. To focus on the building of the site rather than the aesthetics, I decided to use Bootstrap to add a basic layout to it quickly and added based the styling on a bootstrap example blog. You can view the theme at the live example or on the GitHub repository.

Check out my live site: https://eleventy-blog-from-scratch.netlify.app/

What did I learn?

I think the biggest things I learnt from this were understanding how front matter and different templating languages work. With so many files linking to one another it can be very difficult to work out what is going on and building this myself was a great way to really understand it. Eleventy works with multiple template languages but I opted to work with Nunjucks since it popular and has plenty of supported functionality. It seems there are a number of ways that code can be set up to reuse templates, but here I used the layout key in the front matter and used partials and include for the header, footer and navbar. I found the Eleventy documentation was actually really good for this and it helped understanding immensely.

Resources

Here are some of the resources I used during the building of this project:

eleventy-blog-from-scratch's People

Contributors

robbailiff avatar

Stargazers

 avatar

Watchers

James Cloos avatar  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.