Skip to content
Example Hugo project for Platform.sh
HTML CSS Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.platform
content
themes/minimal
.gitignore
.platform.app.yaml
.platform.template.yaml
README.md
build.sh
config.toml

README.md

Hugo for Platform.sh

This template provides a basic Hugo skeleton. All files are generated at build time, so at runtime only static files need to be served.

Hugo is a static site generator written in Go, using Go's native template packages for formatting.

Services

  • Go 1.12

Post-install

The content directory includes two pieces of sample content, provided so that the initial install has some content to show. Replace it with your actual content as desired.

You can also remove the minimal theme if you so desire and replace it with one you download or one you create yourself.

Customizations

If using this project as a reference for your own existing project, replicate the changes below to your project.

  • The .platform.app.yaml, .platform/services.yaml, and .platform/routes.yaml files have been added. These provide Platform.sh-specific configuration and are present in all projects on Platform.sh. You may customize them as you see fit.
  • The .platform.template.yaml file contains information needed by Platform.sh's project setup process for templates. It may be safely ignored or removed.
  • The minimal theme has been included by default. Feel free to remove it and replace with your own if you prefer. Consult the Hugo documentation for instructions on how to add and enable themes.

References

You can’t perform that action at this time.