Skip to content

Add a section #17

Answered by kdevo
bluefander asked this question in Q&A
Jun 8, 2021 · 1 comments · 12 replies
Discussion options

You must be logged in to vote

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 .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 fallback partials/sections/default.html which is used when no music.html is found.

In a future release, I'll i…

Replies: 1 comment 12 replies

Comment options

You must be logged in to vote
12 replies
@bluefander
Comment options

@bluefander
Comment options

@kdevo
Comment options

@kdevo
Comment options

@kdevo
Comment options

Answer selected by bluefander
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants