Coder Social home page Coder Social logo

image-opt's Introduction

Image Optimzation Test Bed for Hugo & Netlify CMS

Getting started

git clone https://github.com/nate-walters-grafana/image-opt

Netlify site address

https://golden-chimera-697c1e.netlify.app/

Running locally

hugo server

Site location: http://localhost:1313

Using CMS: http://localhost:1313/admin

  • Click "Login with Netlify Identity" button and then choose "Continue with Github"
  • If it works, you should be redirected to the netlify site homepage where you'll see a modal "Logged in as YOUR_NAME"
  • Go to https://golden-chimera-697c1e.netlify.app/admin/#/
    • You're in! Not sure, yet, why the redirect doesn't go directly to the CMS
  • NOTE: The first time you log in, you may need to enter https://golden-chimera-697c1e.netlify.app as the URL

Updating the site

Pushing to master triggers an automatic build

Netlify functions

Netlify functions are be placed in the "functions" directory.

More (possibly helpful) info on Netlify functions can be found here:

Other potentially useful info

Hyas -- The Hyas Hugo template has some interesting-looking code for image optimization built-in, might be worth a look-in

image-opt's People

Contributors

nate-walters-grafana 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.