├── .gitmodules ├── .gitpod.yml ├── README.md ├── archetypes └── default.md ├── config.toml ├── content └── posts │ └── my-first-post.md └── public ├── 404.html ├── categories ├── index.html └── index.xml ├── index.html ├── index.xml ├── output └── css │ └── main.166474c2adad740c325e334f04665ab11fac6321b2e4394ef294bbd02fc0648d.css ├── posts ├── index.html ├── index.xml ├── my-first-post │ └── index.html └── page │ └── 1 │ └── index.html ├── sitemap.xml └── tags ├── index.html └── index.xml /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "themes/themes/ananke"] 2 | path = themes/themes/ananke 3 | url = https://github.com/theNewDynamic/gohugo-theme-ananke.git 4 | [submodule "themes/photophobia"] 5 | path = themes/photophobia 6 | url = https://github.com/setsevireon/photophobia 7 | -------------------------------------------------------------------------------- /.gitpod.yml: -------------------------------------------------------------------------------- 1 | # List the start up tasks. Learn more https://www.gitpod.io/docs/config-start-tasks/ 2 | tasks: 3 | - name: Install Hugo dependencies 4 | before: brew install hugo 5 | init: echo "Your version of Hugo is `hugo version`" 6 | command: hugo server -D -F --baseURL $(gp url 1313) --liveReloadPort=443 --appendPort=false --bind=0.0.0.0 7 | # List the ports to expose. Learn more https://www.gitpod.io/docs/config-ports/ 8 | ports: 9 | - port: 1313 10 | onOpen: open-preview 11 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # A Hugo starter template on Gitpod 2 | 3 | This is a [Hugo](https://gohugo.io/getting-started/quick-start/) template configured for ephemeral development environments on [Gitpod](https://www.gitpod.io/). 4 | 5 | To change your theme, [check out the documentation from Hugo](https://gohugo.io/getting-started/quick-start/) and browse the themes [here.](https://themes.gohugo.io/) 6 | 7 | ## Next Steps 8 | 9 | Click the button below to start a new development environment: 10 | 11 | [](https://gitpod.io/#https://github.com/gitpod-io/template-hugo) 12 | 13 | ## Get Started With Your Own Project 14 | 15 | ### A new project 16 | 17 | Click the above "Open in Gitpod" button to start a new workspace. Once you're ready to push your first code changes, Gitpod will guide you to fork this project so you own it. In this Gitpod example, `hugo -D` has been run already which shows you the final build of the static site - feel free to delete the `public` folder once you get started. 18 | 19 | ### An existing project 20 | 21 | To get started with Hugo on Gitpod, add a [`.gitpod.yml`](./.gitpod.yml) file which contains the configuration to improve the developer experience on Gitpod. To learn more, please see the [Getting Started](https://www.gitpod.io/docs/getting-started) documentation. 22 | -------------------------------------------------------------------------------- /archetypes/default.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "{{ replace .Name "-" " " | title }}" 3 | date: {{ .Date }} 4 | draft: true 5 | --- 6 | 7 | -------------------------------------------------------------------------------- /config.toml: -------------------------------------------------------------------------------- 1 | baseURL = "http://example.org/" 2 | languageCode = "en-us" 3 | title = "My New Hugo Site" 4 | theme = "photophobia" -------------------------------------------------------------------------------- /content/posts/my-first-post.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "My First Post" 3 | date: 2021-08-18T12:22:52Z 4 | draft: true 5 | --- 6 | 7 | Hello, from Gitpod! -------------------------------------------------------------------------------- /public/404.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
5 | 6 | 7 | 8 | 9 | 10 |Hello, from Gitpod!
78 | 79 |