Comments (6)
you’re running a pretty old version of hugo…
the latest is 0.123.7 as of yesterday… there’s a lot of changes; most of them good… but if you’re just starting out you’ll really be best served by starting there
from congo.
The template tries to load and get an error
cat "/tmp/hugo_cache/modules/filecache/modules/pkg/mod/github.com/jpanther/congo/[email protected]/layouts/_default/_markup/render-link.html"
{{- $link := .Destination -}}
{{- $isRemote := strings.HasPrefix $link "http" -}}
{{- if not $isRemote }}
{{ $url := urls.Parse .Destination }}
{{- if $url.Path }}
{{ $fragment := "" }}
{{- with $url.Fragment }}{{ $fragment = printf "#%s" . }}{{ end -}}
{{- with .Page.GetPage $url.Path }}
{{ $link = printf "%s%s" .RelPermalink $fragment }}
{{ else }}
{{- if hasSuffix $url.Path ".md" }}
{{ warnf "[CONGO] Can't resolve: %s" .Destination }}
{{ end -}}
{{ end -}}
{{ end -}}
{{ end -}}
<a href="{{ $link | safeURL }}"{{ with .Title }} title="{{ . }}"{{ end }}{{ if $isRemote }} target="_blank" rel="noreferrer"{{ end }}>{{- .Text | safeHTML -}}
from congo.
I found that many files the functions are missing the . in the beginning like .page or .continue etc..
Is that because of the version of Hugo or the files need to be corrected ?
from congo.
After fixing the files, now I am getting the following errors
hugo server
Start building sites …
hugo v0.92.2+extended linux/amd64 BuildDate=2023-01-31T11:11:57Z VendorInfo=ubuntu:0.92.2-1ubuntu0.1
ERROR 2024/02/29 21:16:41 render of "taxonomy" failed: "/tmp/hugo_cache/modules/filecache/modules/pkg/mod/github.com/jpanther/congo/[email protected]/layouts/_default/baseof.html:5:12": execute of template failed: template: _default/taxonomy.html:5:12: executing "_default/taxonomy.html" at : can't evaluate field LanguageCode in type *langs.Language
ERROR 2024/02/29 21:16:41 render of "taxonomy" failed: "/tmp/hugo_cache/modules/filecache/modules/pkg/mod/github.com/jpanther/congo/[email protected]/layouts/_default/baseof.html:5:12": execute of template failed: template: _default/taxonomy.html:5:12: executing "_default/taxonomy.html" at : can't evaluate field LanguageCode in type *langs.Language
Error: Error building site: failed to render pages: render of "home" failed: "/tmp/hugo_cache/modules/filecache/modules/pkg/mod/github.com/jpanther/congo/[email protected]/layouts/_default/baseof.html:5:12": execute of template failed: template: index.html:5:12: executing "index.html" at : can't evaluate field LanguageCode in type *langs.Language
Built in 35 ms
from congo.
I was able to fix by adding 2.6.1 version in the go.mod file, seems that any version >=2.7.0 doesn't work.
from congo.
I can't replicate this issue. As suggested above, have you tried upgrading your Hugo version?
from congo.
Related Issues (20)
- Extra space after [ when using links HOT 2
- Author image does not render in profile homepage or author footer info HOT 5
- Copy from code block appends a newline for every line HOT 3
- HTML Table not filling width at `md` size viewport and above
- Featured images overlapping with page title when article metadata hidden HOT 8
- Inconsistent picture rendering HOT 1
- Error calling first: can't iterate over maps.Params HOT 3
- The thumbnail images, or cover images are not showing HOT 2
- SVG width and height do not consider units HOT 5
- enableImageWebp breaks animated GIF files HOT 3
- Add Threads support
- Next article pagination link animation is inverted
- Non-existent two-part path results with 404 page which doesn't load css and js files HOT 2
- Emoji are rendered inside Markdown code blocks HOT 2
- Unexpected blank line when using multiple lines in an alert box HOT 1
- [docs] Link to configuration files triggers Google Unsafe warning
- Images aren't showing when used in the non-default language HOT 2
- Featured picture overlaps with the title if turning off reading time and post date HOT 1
- Images are not showing up at all while following congo @ 5c8ab32 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from congo.