Skip to content

barri7n/demo-netlify-plugin-add-instagram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example site: netlify-plugin-add-instagram

This site only exists to demonstrate a Netlify Build Plugin.

Quick try-out

You can try out this site and its plugin out by deploying it.

Clicking the button below will clone this repo, setup a new site on Netlify and deploy the site complete with the plugin configured and operational.

Deploy to Netlify

Configuration

You can specify the Instagram account from which to get images by specifying the username in the netlify.toml file. Other configuration options are also available as shown below.

  [plugins.inputs]

    # Where to put the image files
    imageFolder = "src/images/instagram"

    # Also stash data about the images in a json file
    dataFile = "src/_data/instagram.json"

    # How many seconds should we cache the instagram feed for?
    feedTTL = 30

    # How many seconds should we cache each instagram image for?
    imageTTL = 1209600   # 2 weeks

    # Which of Instagrams image sizes should we fetch?
    # t (thumbnail)
    # m (medium)
    # l (large)
    imageSize = "m"

    # Instagram username
    username = "philhawksworth"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published