-
|
I am working on a website with many pages and sub-pages that appear in the sidebar and it would be very useful for me if those marked as drafts had some kind of visual cue in the title, both in the sidebar and in the main title when you are on that page. For example, I have seen other themes add a small “draft” badge next to the title of those specific pages. What would be the best approach to achieve something like this? Is there a partial in Relearn that I could modify? Or are there more than one? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Currently, the theme does not have built-in support but it should be possible to achieve this with a little bit of coding by you. You would need to override |
Beta Was this translation helpful? Give feedback.
Currently, the theme does not have built-in support but it should be possible to achieve this with a little bit of coding by you.
See https://mcshelby.github.io/hugo-theme-relearn/configuration/customization/partials/index.html#customizable-partials
You would need to override
layouts/partials/heading-pre.htmlandlayouts/partials/menu-pre.htmlto add some span/div etc. and style it in eitherlayouts/partials/custom-header.html(expects html, so you need to put your styles in a<style>tag) orcss/custom.css(if you haven't overridenlayouts/partials/custom-header.htmlbefore).