Skip to content

From the Super simple static sites, using JAMStack Lunch & Learn

Notifications You must be signed in to change notification settings

hippo-digital/hippo-jamstack-11ty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hippo JAMStack 11ty

From the Super simple static sites, using JAMStack Lunch & Learn

Welcome to the monstrosity of combining the Government Design System with Pokemon. Here we learn how to render data from a static source as well as from a third party API.

Installation and Setup Instructions

CLI - Node v12 and above required

# Installation:
npm i

# Start development:
npm start

# Production build:
npm build

View App:

Visit localhost:8080 your browser.

Create new pages:

For every file template you create (via Nunjucks, Markdown, 11ty.js etc.) within the src directory, a relative page will be generated in the dist directory, named after the filename of your choosing.

Data source:

All data sources are located in src/_data. I have provided 3 sources 2 static and 1 from an API. Within your templates you'll find a for loop {% for ** in ** f%} where it reference the filename that's stored within src/_data.

11ty Config

The .eleventy.js config consists of which directory should it be watching files from and where to compile them to. Eleventy can still run without this config but it'll use default settings. More info from the docs.

References

About

From the Super simple static sites, using JAMStack Lunch & Learn

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published