Skip to content

Commit

Permalink
feat: add the full_width parameter to take full width
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Jun 19, 2023
1 parent 8df5d79 commit 1745c99
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,14 @@ path = "github.com/hugomods/icons/vendors/bootstrap"
[[module.imports]]
path = "github.com/hugomods/images"

[params.hugopress.modules.hb-blog.attributes.hb-main]
cacheable = true

[params.hb.terms]
paginate = 9

[params.hb.blog]
full_width = false
paginate = 12
post_date_format = ':date_long'
post_thumbnail = true
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{{- $class := "hb-main container" }}
{{- if site.Params.hb.blog.full_width }}
{{- $class = "hb-main container-fluid" }}
{{- end }}
{{- return dict "class" $class }}

0 comments on commit 1745c99

Please sign in to comment.