jbarone / ghostToHugo

Convert Ghost blog export to Hugo posts
MIT License
133 stars 13 forks source link

herring-cove is no longer maintained and does not work #44

Open xobs opened 1 year ago

xobs commented 1 year ago

Describe the bug The program recommends users install the herring-cove theme:

[4:20:13 pm] ~/Downloads> .\ghostToHugo.exe .\xobs-blog.ghost.2023-07-23-08-17-40.json
Importing...
Congratulations! 42 post(s) imported!
Now, start Hugo by yourself:
$ git clone https://github.com/spf13/herring-cove.git newhugosite/themes/herring-cove
$ cd newhugosite
$ hugo server --theme=herring-cove
[4:20:16 pm] ~/Downloads>

However, it does not appear to function:

[4:20:28 pm] ~/Downloads/newhugosite> git clone https://github.com/spf13/herring-cove.git themes/herring-cove
Cloning into 'themes/herring-cove'...
remote: Enumerating objects: 178, done.
Receiving objects:  58% (104/178), 5.52 MiB | 11.02 MiB/ssed 178
Receiving objects: 100% (178/178), 6.57 MiB | 11.02 MiB/s, done.
Resolving deltas: 100% (71/71), done.
[4:20:41 pm] ~/Downloads/newhugosite> hugo server --theme=herring-cove
Start building sites …
hugo v0.101.0-466fa43c16709b4483689930a4f9ac8add5c9f66+extended windows/amd64 BuildDate=2022-06-16T07:09:16Z VendorInfo=gohugoio
ERROR 2023/07/23 16:20:45 render of "page" failed: execute of template failed: template: partials/header.html:8:10: executing "partials/header.html" at <.Hugo.Generator>: can't evaluate field Hugo in type *hugolib.pageState
ERROR 2023/07/23 16:20:45 render of "page" failed: execute of template failed: template: partials/header.html:8:10: executing "partials/header.html" at <.Hugo.Generator>: can't evaluate field Hugo in type *hugolib.pageState
ERROR 2023/07/23 16:20:45 render of "page" failed: execute of template failed: template: partials/header.html:8:10: executing "partials/header.html" at <.Hugo.Generator>: can't evaluate field Hugo in type *hugolib.pageState
ERROR 2023/07/23 16:20:45 render of "page" failed: execute of template failed: template: partials/header.html:8:10: executing "partials/header.html" at <.Hugo.Generator>: can't evaluate field Hugo in type *hugolib.pageState
ERROR 2023/07/23 16:20:45 render of "page" failed: execute of template failed: template: partials/header.html:8:10: executing "partials/header.html" at <.Hugo.Generator>: can't evaluate field Hugo in type *hugolib.pageState
Error: Error building site: failed to render pages: render of "home" failed: "C:\Users\Sean\Downloads\newhugosite\themes\herring-cove\layouts\index.html:9:17": execute of template failed: template: index.html:9:17: executing "index.html" at <.RSSLink>: can't evaluate field RSSLink in type *hugolib.pageState
Built in 145 ms
[4:20:45 pm] ~/Downloads/newhugosite>

Additionally, the README.md at https://github.com/spf13/herring-cove points out that the theme is no longer maintained, and is unlikely to be fixed in the future.

xobs commented 1 year ago

A reasonable replacement might be https://github.com/kirill-shtrykov/hugo-ghost-theme