LIGHT

  • News
  • Docs
  • Community
  • Reddit
  • GitHub

Hugo Netlify

Hugo is a static site generator and the generated site can be deployed to gh-pages branch as hugo-docs branch of your repository or a hugo site. If you want to make the entire static site automatic, you can leverage a great service provided by netlify.com

For how to install Hugo and work with the command line tool, please refer to the reference document at the end.

Create a repo

Now let’s create a repo for the static site. Let’s say we are using https://github.com/networknt/doc.maproot.net repository. For easy start, I am copying from the latest https://github.com/gohugoio/hugoDocs as the starting point.

When copying the site, please don’t copy the themes but just copy the following folders.

drwxrwxr-x 2 steve steve 4096 May 11 12:45 archetypes
drwxr-xr-x 5 steve steve 4096 Aug 17  2019 config
-rw-rw-r-- 1 steve steve 1717 May 11 12:24 config.toml
drwxrwxr-x 4 steve steve 4096 May 11 11:24 content
drwxr-xr-x 2 steve steve 4096 May 11 11:09 data
drwxr-xr-x 5 steve steve 4096 Aug 17  2019 layouts
-rw-rw-r-- 1 steve steve 1066 May 11 11:00 LICENSE
-rw-rw-r-- 1 steve steve  660 May 11 11:09 netlify.toml
-rwxr-xr-x 1 steve steve  120 Aug 17  2019 pull-theme.sh
-rw-rw-r-- 1 steve steve 1043 May 11 11:37 README.md
drwxrwxr-x 3 steve steve 4096 May 11 12:58 resources
drwxrwxr-x 4 steve steve 4096 May 11 11:26 static
drwxrwxr-x 3 steve steve 4096 May 11 12:21 themes

Checkin the newly copied site and then let’s add the theme.

git subtree add --prefix=themes/gohugoioTheme/ [email protected]:gohugoio/gohugoioTheme.git master --squash

After that, make the change in the themes folder to customize the template. Once finished, check in the result. The update for the theme templates are checked in as well so that we can keep the updates.

The following is a document to help to setup the netlify.

https://gohugo.io/hosting-and-deployment/hosting-on-netlify/

Remember that it will take up to 24 hours for the DNS to propagate once you update the cloudflare DNS. Once the DNS record is propagated, you can enable TLS with netlify certificate.

  • About Light
    • Overview
    • Testimonials
    • What is Light
    • Features
    • Principles
    • Benefits
    • Roadmap
    • Community
    • Articles
    • Videos
    • License
    • Why Light Platform
  • Getting Started
    • Get Started Overview
    • Environment
    • Light Codegen Tool
    • Light Rest 4j
    • Light Tram 4j
    • Light Graphql 4j
    • Light Hybrid 4j
    • Light Eventuate 4j
    • Light Oauth2
    • Light Portal Service
    • Light Proxy Server
    • Light Router Server
    • Light Config Server
    • Light Saga 4j
    • Light Session 4j
    • Webserver
    • Websocket
    • Spring Boot Servlet
  • Architecture
    • Architecture Overview
    • API Category
    • API Gateway
    • Architecture Patterns
    • CQRS
    • Eco System
    • Event Sourcing
    • Fail Fast vs Fail Slow
    • Integration Patterns
    • JavaEE declining
    • Key Distribution
    • Microservices Architecture
    • Microservices Monitoring
    • Microservices Security
    • Microservices Traceability
    • Modular Monolith
    • Platform Ecosystem
    • Plugin Architecture
    • Scalability and Performance
    • Serverless
    • Service Collaboration
    • Service Mesh
    • SOA
    • Spring is bloated
    • Stages of API Adoption
    • Transaction Management
    • Microservices Cross-cutting Concerns Options
    • Service Mesh Plus
    • Service Discovery
  • Design
    • Design Overview
    • Design First vs Code First
    • Desgin Pattern
    • Service Evolution
    • Consumer Contract and Consumer Driven Contract
    • Handling Partial Failure
    • Idempotency
    • Server Life Cycle
    • Environment Segregation
    • Database
    • Decomposition Patterns
    • Http2
    • Test Driven
    • Multi-Tenancy
    • Why check token expiration
    • WebServices to Microservices
  • Cross-Cutting Concerns
    • Concerns Overview
  • API Styles
    • Light-4j for absolute performance
    • Style Overview
    • Distributed session on IMDG
    • Hybrid Serverless Modularized Monolithic
    • Kafka - Event Sourcing and CQRS
    • REST - Representational state transfer
    • Web Server with Light
    • Websocket with Light
    • Spring Boot Integration
    • Single Page Application
    • GraphQL - A query language for your API
    • Light IBM MQ
    • Light AWS Lambda
    • Chaos Monkey
  • Infrastructure Services
    • Service Overview
    • Light Proxy
    • Light Mesh
    • Light Router
    • Light Portal
    • Messaging Infrastructure
    • Centralized Logging
    • COVID-19
    • Light OAuth2
    • Metrics and Alerts
    • Config Server
    • Tokenization
    • Light Controller
  • Tool Chain
    • Tool Chain Overview
  • Utility Library
  • Service Consumer
    • Service Consumer
  • Development
    • Development Overview
  • Deployment
    • Deployment Overview
    • Frontend Backend
    • Linux Service
    • Windows Service
    • Install Eventuate on Windows
    • Secure API
    • Client vs light-router
    • Memory Limit
    • Deploy to Kubernetes
  • Benchmark
    • Benchmark Overview
  • Tutorial
    • Tutorial Overview
  • Troubleshooting
    • Troubleshoot
  • FAQ
    • FAQ Overview
  • Milestones
  • Contribute
    • Contribute to Light
    • Development
    • Documentation
    • Example
    • Tutorial
“Hugo Netlify” was last updated: May 11, 2020: add content for hugo-netlify (4821727)
Improve this page
  • News
  • Docs
  • Community
  • Reddit
  • GitHub
  • About Light
  • Getting Started
  • Architecture
  • Design
  • Cross-Cutting Concerns
  • API Styles
  • Infrastructure Services
  • Tool Chain
  • Utility Library
  • Service Consumer
  • Development
  • Deployment
  • Benchmark
  • Tutorial
  • Troubleshooting
  • FAQ
  • Milestones
  • Contribute