gohugoio / hugoDocs

The source for https://gohugo.io/
Apache License 2.0
1.03k stars 1.46k forks source link

quick start guide: Remove usage of Ananke theme #2548

Open jmooring opened 2 months ago

jmooring commented 2 months ago
hugo new site quickstart
cd quickstart
git init
git submodule add https://github.com/theNewDynamic/gohugo-theme-ananke.git themes/ananke
echo "theme = 'ananke'" >> hugo.toml
hugo new posts/post-1.md
hugo new posts/post-2.md
hugo new posts/post-3.md
hugo new posts/post-4.md
hugo -D

Error: error building site: render: failed to render pages: render of "home" failed: "/home/user/projects/quickstart/themes/ananke/layouts/index.html:48:23": execute of template failed: template: index.html:48:23: executing "main" at <.Site.GetPage>: can't evaluate field Site in type string

Someone broke the Ananke theme last week: https://github.com/theNewDynamic/gohugo-theme-ananke/pull/665

There's an open PR to fix it: https://github.com/theNewDynamic/gohugo-theme-ananke/pull/685

yaardie commented 2 months ago

PR was merged.

jmooring commented 2 months ago

@yardie After correspondence with the Ananke theme author, we're going to document use of the minimal theme created by hugo new theme foo instead. The Ananke theme has not been updated to include newer Hugo features, and it is unlikely to be updated in the near future.

yaardie commented 2 months ago

I am a supporter of using hugo new theme in the Quick Start guide. The skeleton theme presents a usable theme anyway.