Skip to content

Commit

Permalink
feat: add the sidebar taxonomies module
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Jun 19, 2023
1 parent 1f6fbef commit a3d1876
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 0 deletions.
1 change: 1 addition & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"modules/post-nav": "0.2.1",
"modules/related-posts": "0.1.3",
"modules/sidebar/posts": "0.0.1",
"modules/sidebar/taxonomies": "0.0.1",
"modules/staticman": "0.1.2",
"modules/toc-scrollspy": "0.1.1",
"modules/twikoo": "0.1.1",
Expand Down
16 changes: 16 additions & 0 deletions modules/sidebar/taxonomies/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module github.com/hbstack/blog/modules/sidebar/taxonomies

go 1.19

require (
github.com/gohugoio/hugo-mod-bootstrap-scss/v5 v5.20300.20003 // indirect
github.com/hbstack/blog v0.14.0 // indirect
github.com/hbstack/footer v0.2.1 // indirect
github.com/hbstack/header v0.1.17 // indirect
github.com/hugomods/base v0.1.0 // indirect
github.com/hugomods/hugopress v0.2.0 // indirect
github.com/hugomods/icons v0.6.0 // indirect
github.com/hugomods/icons/vendors/simple-icons v1.0.2 // indirect
github.com/hugomods/seo/modules/base v0.1.0 // indirect
github.com/twbs/icons v1.10.5 // indirect
)
22 changes: 22 additions & 0 deletions modules/sidebar/taxonomies/go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
github.com/gohugoio/hugo-mod-bootstrap-scss/v5 v5.20300.20003 h1:pt/JGVD5YYRsVVijOHPZI6YKTUvbR4e0hgV9B0S6rbI=
github.com/gohugoio/hugo-mod-bootstrap-scss/v5 v5.20300.20003/go.mod h1:mvM05r93HiefwoaxQTaYiJxtJAhTebwQtU1Xh/J+Okk=
github.com/gohugoio/hugo-mod-jslibs-dist/popperjs/v2 v2.21100.20000/go.mod h1:mFberT6ZtcchrsDtfvJM7aAH2bDKLdOnruUHl0hlapI=
github.com/hbstack/blog v0.14.0 h1:MbGBGvY1rb/v3V3zzRGxM+pX6rhh+ylN8m++Gxc3edo=
github.com/hbstack/blog v0.14.0/go.mod h1:qM7rXyw88WzFhMzXlq/gz3IrO7OUkRqqtOcpafnmUMQ=
github.com/hbstack/footer v0.2.1 h1:GZbSRcGNMeKAiDLeai0cPaEnztkDBraTNQqe2uap944=
github.com/hbstack/footer v0.2.1/go.mod h1:ldb4b95D/7NVWQWFTIngasypCA+QQQRj1I+1BEyOi/c=
github.com/hbstack/header v0.1.17 h1:lIZuV4+WGsLWxWxEitec3ItAryQoGELpvNHkoYw25tY=
github.com/hbstack/header v0.1.17/go.mod h1:YEYnlqmhotkQdFbSzN/ZQT55kLLfMdvVVIzEDMFgTz4=
github.com/hugomods/base v0.1.0 h1:3o9Y85BvXHjkYzZfswM/EtthQ8GOYKN8aXHkIWqu3/8=
github.com/hugomods/base v0.1.0/go.mod h1:hnWCPbVxuhXBwdFax3mmbMlWKmIo/7OP36MCLOyHtT4=
github.com/hugomods/hugopress v0.2.0 h1:Y9emu6wDnPsr7Rk0VyxWi5KEWreaFxUxPFAeG6euFpk=
github.com/hugomods/hugopress v0.2.0/go.mod h1:CRYvr60xOkZOf4Atkuj+uEj2EH5pjJ39Ws3aJAkoMkA=
github.com/hugomods/icons v0.6.0 h1:G6RU93okhPPRDh/jqcew9gwkcYpSpg0rCBv4S6yUAFw=
github.com/hugomods/icons v0.6.0/go.mod h1:cIkSvK6W0q6N4U6n9KGz+QfRWQXAW0INd+1P31gPNGg=
github.com/hugomods/icons/vendors/simple-icons v1.0.2 h1:ZeJhUAweQmS/YtRHoVlFhIlH0tqHjMsPEXKSenwPpUM=
github.com/hugomods/icons/vendors/simple-icons v1.0.2/go.mod h1:H/2FX6ppiVXZ0vZZGAsLWcKSXwWScWLj+jg/jJhOgKk=
github.com/hugomods/seo/modules/base v0.1.0 h1:ZEkWuYeRJeQakBkBThO3N3lmGzOZoPixs4pDugJXfJk=
github.com/hugomods/seo/modules/base v0.1.0/go.mod h1:qfm1Vga0eGxL+Szgz8Jopm+NtJ5PGov2a2dikTg1qSg=
github.com/twbs/bootstrap v5.3.0+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=
github.com/twbs/icons v1.10.5 h1:F9uvW7cGfDBAautw5aeCmnB3hw4vv3aEQGbHnzcQKaE=
github.com/twbs/icons v1.10.5/go.mod h1:GnRlymgVWp5iVJCMa0Me5b6tFyGpVc2bSxPMRGIJmyA=
8 changes: 8 additions & 0 deletions modules/sidebar/taxonomies/hugo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[[module.imports]]
path = "github.com/hbstack/blog"

[params.hugopress.modules.hb-blog-sidebar-taxonomies.hooks.hb-blog-sidebar]

[params.hb.blog.sidebar.taxonomies]
count = true
limit = 10
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{{- $opts := site.Params.hb.blog.sidebar.taxonomies }}
<div class="hb-blog-sidebar-taxonomies hb-module">
{{ partial "hb/modules/blog/taxonomies/toggle" $opts }}
</div>
4 changes: 4 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"modules/post-nav",
"modules/related-posts",
"modules/sidebar/posts",
"modules/sidebar/taxonomies",
"modules/staticman",
"modules/toc-scrollspy",
"modules/twikoo",
Expand Down Expand Up @@ -60,6 +61,9 @@
"modules/sidebar/posts": {
"component": "modules/sidebar/posts"
},
"modules/sidebar/taxonomies": {
"component": "modules/sidebar/taxonomies"
},
"modules/staticman": {
"component": "modules/staticman"
},
Expand Down

0 comments on commit a3d1876

Please sign in to comment.