Giter Club home page Giter Club logo

mk2-p4nth3rblog's Introduction

whitep4nth3r.com

This site is built with Eleventy and Netlify.

A screenshot of a blog post on whitep4nth3r.com


Developing locally

Install dependencies

npm install

Run the site locally

Use the Netlify CLI to inject environment variables stored against the Netlify site — no local .env file needed!

ntl dev

Project structure


./lib

Contains all code to fetch and format data from the following sources:

  • Contentful
  • GitHub
  • Twitch

./src

Directories prefixed with _ are utility folders, providing global data, layouts, styles, component partials and other functionality.

Other directories (about, blog, dashboard, projects, talks, topics, uses) act as page-level route directories, resulting in e.g. /projects/, /dashboard/ etc in the site build.

The site homepage is built from /src/index.11ty.js.


Inside page-level route directories

  • e.g. /{name}/index.11ty.js builds the /{name}/ route.
  • e.g. /{name}/{name}.11tydata.js fetches the data that is provided to sibling files.
  • e.g. {name}-pages.11ty.js creates a collection of files (or dynamic routes) using Eleventy pagination, available on /{name}/{dynamic_route}/

.eleventy.js

The Eleventy config file:

  • loads plugins
  • defines how to output files and directories from ./src

Build output

Using ntl dev, the site is built to and served from _site.

mk2-p4nth3rblog's People

Contributors

whitep4nth3r avatar

Stargazers

Roman 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.