kdevo / osprey-delight

Osprey Delight is the free-minded artist's choice for a clutter-free and blazingly fast single-page portfolio.
https://hugo-mods.github.io/
Apache License 2.0
99 stars 44 forks source link

osprey-delight failing to build due to google analytics #55

Closed MikeMitchellWebDev closed 4 months ago

MikeMitchellWebDev commented 4 months ago

Your theme looks really great. Unfortunately, it won't build for me.

  1. hugo new site my-awesome-blog
  2. cd my-awesome-blog
  3. hugo mod init my-awesome-blog
  4. hugo server

hugo.toml

languageCode = 'en-us'
title = 'My New Hugo Site'

[module]
  [[module.imports]]
    path = 'github.com/kdevo/osprey-delight'``` 

Start building sites … hugo v0.128.1-0ff542b4b9cc7b5cb425bbab8bdb5aace81d0c03+extended darwin/amd64 BuildDate=2024-07-02T06:46:41Z VendorInfo=gohugoio



```ERROR render of "home" failed: "/Users/mm/Library/Caches/hugo_cache/modules/filecache/modules/pkg/mod/github.com/kdevo/osprey-delight@v4.0.0+incompatible/layouts/index.html:3:5": execute of template failed: template: index.html:3:5: executing "index.html" at <partial "head.html" .>: error calling partial: execute of template failed: html/template:partials/head.html:109:16: no such template "_internal/google_analytics_async.html"
ERROR render of "404" failed: "/Users/mm/Library/Caches/hugo_cache/modules/filecache/modules/pkg/mod/github.com/kdevo/osprey-delight@v4.0.0+incompatible/layouts/404.html:3:5": execute of template failed: template: 404.html:3:5: executing "404.html" at <partial "head.html" .>: error calling partial: execute of template failed: html/template:partials/head.html:109:16: no such template "_internal/google_analytics_async.html"
ERROR render of "taxonomy" failed: "/Users/mm/Library/Caches/hugo_cache/modules/filecache/modules/pkg/mod/github.com/kdevo/osprey-delight@v4.0.0+incompatible/layouts/_default/list.html:6:5": execute of template failed: template: _default/list.html:6:5: executing "_default/list.html" at <partial "head.html" .>: error calling partial: execute of template failed: html/template:partials/head.html:109:16: no such template "_internal/google_analytics_async.html"
Built in 23 ms
Error: error building site: render: failed to render pages: render of "taxonomy" failed: "/Users/mm/Library/Caches/hugo_cache/modules/filecache/modules/pkg/mod/github.com/kdevo/osprey-delight@v4.0.0+incompatible/layouts/_default/list.html:6:5": execute of template failed: template: _default/list.html:6:5: executing "_default/list.html" at <partial "head.html" .>: error calling partial: execute of template failed: html/template:partials/head.html:109:16: no such template "_internal/google_analytics_async.html"```

Apologies for the formatting...
I did not follow the instructions in the Hugo quickstart guide, as I assume they are not necessary with modules
git submodule add https://github.com/kdevo/osprey-delight.git themes/osprey-delight
echo "theme = 'osprey-delight'" >> hugo.toml
kdevo commented 4 months ago

Should be fixed by #54