Skip to content

Commit

Permalink
Add custom sidebar widget
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Jun 19, 2023
1 parent 28c7883 commit 4c1930a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ The starter theme template of [HB Framework](https://hbstack.dev/), live demo: h
- Custom HTML markup:
- [Before the end of `<head>`](https://github.com/hbstack/theme/blob/main/layouts/partials/hugopress/modules/hb-custom/hooks/head-end.html)
- [Before the end of `<body>`](https://github.com/hbstack/theme/blob/main/layouts/partials/hugopress/modules/hb-custom/hooks/body-end.html)
- [Custom sidebar widget](https://github.com/hbstack/theme/blob/main/layouts/partials/hugopress/modules/hb-custom/hooks/hb-blog-sidebar.html)
- :framed_picture: **Images Processing**: process images via URL query string and fragment, such as alignment, resizing, cropping and so on, friendly to Markdown.
- :computer: **Code block panel**: expand toggle, code copy button, line number toggle and wrap toggle.
- **Menus**: supports header menus and footer menus.
Expand Down
3 changes: 3 additions & 0 deletions config/_default/params.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,6 @@ hugopress:
# see layouts/partials/hugopress/modules/hb-custom/hooks/body-end.html.
body-end:
cacheable: true
# see layouts/partials/hugopress/modules/hb-custom/hooks/hb-blog-sidebar.html.
hb-blog-sidebar:
cacheable: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<div class="hb-module text-center bg-primary text-white p-3">
CUSTOM SIDEBAR WIDGET
</div>

0 comments on commit 4c1930a

Please sign in to comment.