Comments (6)
Ah your right, this was a wrong observation either due to caching or changing path names. (It was late yesterday)
from hugo.
It would be helpful if you could share your project with us. I am unable to recreate the problem based on the description above.
from hugo.
And now, just to be sure, I changed the folder name from "artProject" to only "art" and it magically works. And I can reproduce it! If the folder name is only lowercase it works, if it contains an upper case it is ignored. Is there any naming scheme I couldn't find in the docs?
EDIT: Updated the original issue to reflect this issue.
from hugo.
With this content structure:
content/
└── TestDir/
└── p1.md
Value returned by v0.122.0 | Value returned by v0.123.0 | |
---|---|---|
{{ .Section }} |
TestDir |
testdir |
{{ .Type }} |
TestDir |
testdir |
Which means you can't do this anymore:
layouts/
└── TestDir/
└── single.html
I'm guessing that both Type
and Section
are now derived from the logical path (described here) instead of the physical path.
I'm not sure if this is one of the intentional breaking changes in v0.123.0. Regardless, change your layouts structure to:
layouts/
└── testdir/
└── single.html
from hugo.
Sounds plausible that it is caused by the function because copying the folder from layouts to the templates layouts folder doesn't help. So it seems to be a global problem. If it is intended and only lowercase is allowed now we should add some documentation for it.
Oh and it doesn't help to just rename the layout folder to a lowercase version, we need to rename the content structure too.
from hugo.
it doesn't help to just rename the layout folder to a lowercase version
Yes, it does, try it.
git clone --single-branch -b hugo-github-issue-12398 https://github.com/jmooring/hugo-testing hugo-github-issue-12398
cd hugo-github-issue-12398
hugo server
Then visit http://localhost:1313/testdir/p1/
from hugo.
Related Issues (20)
- Apache license is not meant to be modified HOT 1
- Twitter `og:description` doubly escaped by Hugo 0.125.x HOT 6
- Output folder of rendered images of AsciiDoctor Diagram extension HOT 2
- Sign Binary Releases For Verification? HOT 2
- Public site building simultaneously HOT 3
- XMPP: Post to PubSub HOT 1
- Rendering Issue caused by `<!--more-->` HOT 2
- Create pages from _content.gotmpl HOT 15
- The /docs merge creates empty commits HOT 2
- tpl/tplimpl: Plainify title and description in schema.html HOT 2
- tpl/tplimpl: Plainify title and description in twitter_cards.html HOT 1
- Page does not reload after modifying a different page HOT 3
- PublishDate does not roll-up to section, taxonomy, or term pages HOT 3
- Error suppressed while running server unless browser is open HOT 3
- Please add SLSA provenance to your releases HOT 5
- Broken image sources with base64 encoded images HOT 2
- Update from 0.111.3 to 0.124.1 breaks site HOT 1
- echo "bar" >> content/about/index.md% panics
- Cascade deletion of title and similar not handled very well on partial rebuilds HOT 1
- Shouldn't this check for a `tsconfig.json` in addition to checking `[build.noJSConfigInAssets]`? HOT 2
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 hugo.