How to add an item in a blog post's sidebar? #7819
-
I have recently added support for RSS in my blog. I'd to like to emphasize this to readers, by adding a link to the RSS feed in the post's sidebar, alongside its existing metadata. My understanding is that I should do this by overriding the So, how can I add a new item in a post's sidebar? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello @CLOVIS-AI, |
Beta Was this translation helpful? Give feedback.
Hello @CLOVIS-AI,
you're correct, there is no block for overrides defined in that template, the theme limits the blocks only to
base.html
.Basically you have to copy the whole content of the template and modify the HTML to your liking, as it overrides the
container
block.Name it
blog-post.html
so that your overridden variant will overwrite the file from the theme, during build.