From 4c1930aa61afc94b15acc527f9345edf4d0ad4b5 Mon Sep 17 00:00:00 2001 From: razonyang Date: Mon, 19 Jun 2023 18:31:20 +0800 Subject: [PATCH] Add custom sidebar widget --- README.md | 1 + config/_default/params.yaml | 3 +++ .../hugopress/modules/hb-custom/hooks/hb-blog-sidebar.html | 3 +++ 3 files changed, 7 insertions(+) create mode 100644 layouts/partials/hugopress/modules/hb-custom/hooks/hb-blog-sidebar.html diff --git a/README.md b/README.md index 9b78ebea..e6dded78 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,7 @@ The starter theme template of [HB Framework](https://hbstack.dev/), live demo: h - Custom HTML markup: - [Before the end of ``](https://github.com/hbstack/theme/blob/main/layouts/partials/hugopress/modules/hb-custom/hooks/head-end.html) - [Before the end of ``](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. diff --git a/config/_default/params.yaml b/config/_default/params.yaml index f475c25a..3a7799a9 100644 --- a/config/_default/params.yaml +++ b/config/_default/params.yaml @@ -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 diff --git a/layouts/partials/hugopress/modules/hb-custom/hooks/hb-blog-sidebar.html b/layouts/partials/hugopress/modules/hb-custom/hooks/hb-blog-sidebar.html new file mode 100644 index 00000000..a08b2ddc --- /dev/null +++ b/layouts/partials/hugopress/modules/hb-custom/hooks/hb-blog-sidebar.html @@ -0,0 +1,3 @@ +
+ CUSTOM SIDEBAR WIDGET +