andromeda-light-hugo icon indicating copy to clipboard operation
andromeda-light-hugo copied to clipboard

Failing to serve using theme

Open andrei-dascalu opened this issue 2 years ago • 4 comments

Hello,

When I try to serve a basic hugo site using the andromeda-light them, I am getting this

Error: Error building site: failed to render pages: render of "home" failed: execute of template failed: template: index.html:14:4: executing "index.html" at <partial "head.html" .>: error calling partial: "<path>/quickstart/themes/andromeda-light/layouts/partials/head.html:25:18": execute of template failed: template: partials/head.html:25:18: executing "partials/head.html" at <add `assets/` $favicon>: error calling add: can't apply the operator to the values

Config:

baseURL: "http://127.0.0.1/"
languageCode: en-us
title: "My Hugo Test"
theme: "andromeda-light"

Using hugo v0.98.0

andrei-dascalu avatar May 04 '22 19:05 andrei-dascalu

Hello @andrei-dascalu

I think you couldn't organize the files, please follow this documentation to set it up. thank you

tfsomrat avatar May 06 '22 08:05 tfsomrat

Directly from the README:

# clone the repository
git clone [email protected]:gethugothemes/andromeda-light.git

# cd in the project directory
$ cd andromeda-light/exampleSite/

# Start local dev server
$ hugo server --themesDir ../..

This results in the error above.

hugo v0.102.0-DEV-9c24b86e4b634d7db761a3e57c1b64fead880aff+extended linux/amd64 BuildDate=2022-07-13T13:49:00Z

That's straight from the latest commit on Hugo as of right now (extended tags)

See also: https://coder.social/gethugothemes/techfeed-hugo/issues/1

This links to some documentation that is no longer accessible.

hut8 avatar Jul 21 '22 03:07 hut8

hey @hut8

try npm run dev if you have node installed on your machine.

mehedi-sharif avatar Jul 23 '22 03:07 mehedi-sharif

Turns out the error is that if you have the theme already in a hugo site (e.g., hugo new ...) then copy in this repo to themes, then cd into themes/andromeda-light/exampleSite, then run the command, it gives the above error. But, if you have the repo cloned into some other directory (e.g, $HOME) then cd ~/andromeda-light/exampleSite then the command works fine.

hut8 avatar Jul 23 '22 04:07 hut8