For some reason, this was working before, but doesn’t work anymore.
I have the following folder structure:
content/
posts/
server-names/
index.es.md
image.png
But I can’t use the image, because it tells me there are no resources. In the template I use, I put the following code:
<pre>{{ debug.Dump ($.Page ) }}</pre>
<pre>{{ debug.Dump ($.Page.Resources ) }}</pre>
Which shows:
Show json
{
"PageWithoutContent": {
"Date": "2023-09-03T11:19:15.811Z",
"Lastmod": "2023-09-05T08:33:08.398Z",
"PublishDate": "2023-09-03T11:19:15.811Z",
"ExpiryDate": "0001-01-01T00:00:00Z",
"Aliases": null,
"BundleType": "leaf",
"Description": "",
"Draft": false,
"IsHome": false,
"Keywords": null,
"Kind": "page",
"Layout": "",
"LinkTitle": "¿Cómo se llaman mis servidores?",
"IsNode": false,
"IsPage": true,
"Path": "/posts/server-names",
"Slug": "",
"Lang": "es",
"IsSection": false,
"Section": "posts",
"Sitemap": {
"ChangeFreq": "",
"Priority": -1,
"Filename": "sitemap.xml",
"Disable": false
},
"Type": "posts",
"Weight": 0
},
"TableOfContentsProvider": {
"Date": "2023-09-03T11:19:15.811Z",
"Lastmod": "2023-09-05T08:33:08.398Z",
"PublishDate": "2023-09-03T11:19:15.811Z",
"ExpiryDate": "0001-01-01T00:00:00Z",
"Aliases": null,
"BundleType": "leaf",
"Description": "",
"Draft": false,
"IsHome": false,
"Keywords": null,
"Kind": "page",
"Layout": "",
"LinkTitle": "¿Cómo se llaman mis servidores?",
"IsNode": false,
"IsPage": true,
"Path": "/posts/server-names",
"Slug": "",
"Lang": "es",
"IsSection": false,
"Section": "posts",
"Sitemap": {
"ChangeFreq": "",
"Priority": -1,
"Filename": "sitemap.xml",
"Disable": false
},
"Type": "posts",
"Weight": 0
},
"ContentProvider": 0
}
null
The rest of the post is fine
Hugo version:
$ hugo version
hugo v0.125.6+extended linux/amd64 BuildDate=unknown