Present only Categories on Sidebar #49
Answered
by
tomowang
Saggiehaim
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
tomowang
Jul 15, 2024
Replies: 1 comment 1 reply
-
I use range loop for rendering this part in sidebar. You can check the code in If you want keep only Categories, you can remove the range loop and render the
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Saggiehaim
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I use range loop for rendering this part in sidebar. You can check the code in
https://github.com/tomowang/hugo-theme-tailwind/blob/main/layouts/partials/sidebar.html#L14-L19
If you want keep only Categories, you can remove the range loop and render the
block/sidebar_section.html
directly. Sample code: