Collection names not displaying correctly #2690
-
Environment
Expected behaviorShow the name of the collection. Steps to reproduce the behaviorI'm running this project locally, when configuring the site I wanted to add a list of posts separated by collections, so I added a collections-archive.md according to the documentation (in customization / layouts) similar to: https://github.com /mmistakes/minimal-mistakes/blob/master/docs/_pages/collection-archive.html But the name of the collection (I only have the "portfolio" collection at the moment) is displayed as follows: It seems that the code is transformed to highlighted. I do not know what to do. Other |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Have a look at the theme's layout file for a collection. https://github.com/mmistakes/minimal-mistakes/blob/master/docs/_pages/collection-archive.html
These lines are responsible for outputing the What you can do is change it to You might want to look into adding a uppercase filter to |
Beta Was this translation helpful? Give feedback.
-
Sorry I think I did not explain well. I have no problems with the name of the collection appearing in lowercase, what happens is that literally the name (the label, the header, html) appears "highlighted" on the page, for example when you want to show a code snippet. |
Beta Was this translation helpful? Give feedback.
-
Ahh gotcha. Yeah I see your problem (and it's a common one). Either remove the indents, or renamed the file to |
Beta Was this translation helpful? Give feedback.
-
Got it, thanks |
Beta Was this translation helpful? Give feedback.
Ahh gotcha. Yeah I see your problem (and it's a common one).
You named the file
.md
. And Markdown treats indents as code blocks, which is why it highlighted the heading as a<code>
block.Either remove the indents, or renamed the file to
.html
like I'm doing with the demo files.