Blog Sidebar Posts Module

Donate

Become a backer or sponsor to support our work.

On this page

Sponsors

This module shows the recent and featured posts on the blog’s sidebar.

Modulegithub.com/hbstack/blog/modules/sidebar/posts
Repository⭐ Please consider giving a star if your like it.
Stars
Version
Used by
Requirements
License
UsageSee how to use modules.

Site Parameters

ParameterTypeRequiredDefaultDescription
featured_postsnumber5The number of featured posts.
fillbooleantrueWhen true the tabs take full width.
list_stylestringslideThe list style: slide or vertical.
recent_postsnumber5The number of recent posts.
stylestringpillsThe style of tabs, available options: pills, tabs or underline.

hugo.toml

 1[params]
 2  [params.hb]
 3    [params.hb.blog]
 4      [params.hb.blog.sidebar]
 5        [params.hb.blog.sidebar.posts]
 6          featured_count = 5
 7          fill = true
 8          list_style = 'slide'
 9          recent_count = 5
10          style = 'pills'

hugo.yaml

 1params:
 2  hb:
 3    blog:
 4      sidebar:
 5        posts:
 6          featured_count: 5
 7          fill: true
 8          list_style: slide
 9          recent_count: 5
10          style: pills

hugo.json

 1{
 2   "params": {
 3      "hb": {
 4         "blog": {
 5            "sidebar": {
 6               "posts": {
 7                  "featured_count": 5,
 8                  "fill": true,
 9                  "list_style": "slide",
10                  "recent_count": 5,
11                  "style": "pills"
12               }
13            }
14         }
15      }
16   }
17}
razonyang
Tuesday, December 3, 2024 Monday, June 19, 2023