Add a section #17
-
Sorry, another question. I would like to add a section.
I added a new section called Music in the config.yaml I can see a section called "MUSIC" in the navbar, but I can't see the text I wrote in music.md. What am I missing? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 12 replies
-
Hi, Adding custom sections is currently not documented (but it's planned, there is a placeholder for that 😄). The gist of it is to attach the menu to your content file: ---
title: "Music"
menu:
main:
identifier: "music"
url: "/#music"
weight: 3
---
My music... No other adjustments are typically needed. Styling this section can be accomplished via If you want more control over the HTML structure of the section, you can create a partial located at In a future release, I'll implement "sideloading" the content by simply placing a |
Beta Was this translation helpful? Give feedback.
Hi,
Adding custom sections is currently not documented (but it's planned, there is a placeholder for that 😄). The gist of it is to attach the menu to your content file:
No other adjustments are typically needed. Styling this section can be accomplished via
.default
class or#music
selector in CSS.If you want more control over the HTML structure of the section, you can create a partial located at
partials/sections/music.html
. This would be loaded automatically instead of the fallbackpartials/sections/default.html
which is used when nomusic.html
is found.In a future release, I'll i…