Giter Site home page Giter Site logo

gotpop / got Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 15.78 MB

🍓A JAM stack content builder with a drag and drop UI. An extension of Netlify CMS and Hugo

Home Page: https://gotpop.netlify.app

License: MIT License

SCSS 3.79% HTML 26.08% JavaScript 70.14%
hugo netlify netlifycms hugo-theme jamstack static-site-generator static-site

got's Introduction

Got base build

Netlify Status

A static hugo build, content magaged with NetlifyCMS.

Live site

https://gotpop.netlify.app

Build tools

  • Hugo
  • Netlify
  • SCSS
  • JS
  • CSS Grid layout & subgrid

Local development

http://localhost:1313

Your website´s config.toml file should look something like this whilst developing the module locally. The replaced path only seems to work when it´s relative.

go 1.16

// For local testing
replace github.com/gotpop/gotscss => ../gotscss

require github.com/gotpop/gotscss v0.0.1 // indirect

Hints and tips

  • Your website must itself be declared a Hugo module.
  • Go modules are updated via the use of Git tags. Push the tags to update changes to the module in your project.
  • Go modules inside the website are in memory and will not be rendered to the file system.
  • Deleting the themes folder from the root can create errors even if you are not using one.
  • If you wish to view the files within the project you can use hugo mod vender this will render the files to a directory called _vender in the website´s project root.
  • Ensure correct hugo version is specified in the netlify.toml config file in the project root.

Resources

https://www.hugofordevelopers.com/articles/master-hugo-modules-managing-themes-as-modules

https://craftsmandigital.net/blog/hugo-modules

https://blog.jemu.name/2020/05/hugo-theme-components-modules

https://thewebivore.com/using-replace-in-go-mod-to-point-to-your-local-module

https://discourse.gohugo.io/t/hugo-modules-for-dummies/20758

https://discourse.gohugo.io/t/how-to-add-a-theme-using-modules-for-beginners/20665/3

https://stackoverflow.com/questions/59014404/referencing-a-go-module-that-is-local

Netliy config

https://github.com/netlify/netlify-cms/blob/master/dev-test/config.yml

https://mrkaluzny.com/blog/dry-netlify-cms-config-with-manual-initialization

Custom menus offer more flexibility

HasMenu doesn't work when you set menus in menu.json for this reason I think it's a good idea to use fully custom menus.

https://discourse.gohugo.io/t/ismenucurrent-returns-false-for-single-pages/13970/10

got's People

Contributors

gotpop avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

roneoorg

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.