StefMa / hugo-fresh

Hugo Fresh Theme
https://hugo-fresh.vercel.app
MIT License
584 stars 338 forks source link

Canot init site #204

Closed liufuyang closed 1 week ago

liufuyang commented 1 week ago

Hi there, thanks for the good work.

I am trying to use this theme the first time by following this guide https://stefma.github.io/hugo-fresh/getstarted/

And this is what I get after doing hugo server

Start building sites …
hugo v0.125.5+extended darwin/arm64 BuildDate=2024-05-01T15:22:11Z VendorInfo=brew

Built in 21 ms
Error: error building site: render: failed to render pages: render of "home" failed: "/Users/fuyangl/Library/Caches/hugo_cache/modules/filecache/modules/pkg/mod/github.com/!stef!ma/hugo-fresh@v1.0.0/layouts/_default/baseof.html:4:7": execute of template failed: template: index.html:4:7: executing "index.html" at <partial "meta.html" .>: error calling partial: execute of template failed: html/template:partials/meta.html:1:12: no such template "_internal/google_analytics_async.html"

Perhaps you can help give some tips? Thanks :)

StefMa commented 1 week ago

You run probably in https://github.com/StefMa/hugo-fresh/issues/195.

Can you checkout the latest hash of the theme and see if it works?

I might do a release the next days and then thus issue should be gone...

liufuyang commented 1 week ago

Aha, how to check with the latest hash?

liufuyang commented 1 week ago

Oh right, I did this go get github.com/StefMa/hugo-fresh@100f20abd767b76a4bbb0d4764519dd26ec41f01, then the reference in go.mod is updated. Then it can work with the latest hash.

Thanks a lot, feel free to close this issue anytime :)

PepperPlatypus commented 1 week ago

@liufuyang it did solve the issue, but shouldn't the documentation be updated here https://stefma.github.io/hugo-fresh/getstarted/ before closing ?

StefMa commented 1 week ago

I will create a new release this week. Then this issue shouldn't be documented somewhere and is solved automatically.

On Mon, May 6, 2024, 1:34 PM PepperPlatypus @.***> wrote:

@liufuyang https://github.com/liufuyang it did solve the issue, but shouldn't the documentation be updated here https://stefma.github.io/hugo-fresh/getstarted/ before closing ?

— Reply to this email directly, view it on GitHub https://github.com/StefMa/hugo-fresh/issues/204#issuecomment-2095805962, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACOBQ67NZHRJEIGY6QVMW63ZA5TERAVCNFSM6AAAAABHHR7K4WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJVHAYDKOJWGI . You are receiving this because you commented.Message ID: @.***>

StefMa commented 1 week ago

v1.1.0 is out. See https://github.com/StefMa/hugo-fresh/releases/tag/v1.1.0

This issues is obsolete now. Going to be close it.