kadams54 / demo-netlify-plugin-add-instagram

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:Nunjucks 66.8%Language:CSS 27.4%Language:JavaScript 5.8%