diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 5f576f24..7823340a 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -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", diff --git a/modules/sidebar/taxonomies/go.mod b/modules/sidebar/taxonomies/go.mod new file mode 100644 index 00000000..1def9635 --- /dev/null +++ b/modules/sidebar/taxonomies/go.mod @@ -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 +) diff --git a/modules/sidebar/taxonomies/go.sum b/modules/sidebar/taxonomies/go.sum new file mode 100644 index 00000000..0a15bfda --- /dev/null +++ b/modules/sidebar/taxonomies/go.sum @@ -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= diff --git a/modules/sidebar/taxonomies/hugo.toml b/modules/sidebar/taxonomies/hugo.toml new file mode 100644 index 00000000..461c9f7e --- /dev/null +++ b/modules/sidebar/taxonomies/hugo.toml @@ -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 diff --git a/modules/sidebar/taxonomies/layouts/partials/hugopress/modules/hb-blog-sidebar-taxonomies/hooks/hb-blog-sidebar.html b/modules/sidebar/taxonomies/layouts/partials/hugopress/modules/hb-blog-sidebar-taxonomies/hooks/hb-blog-sidebar.html new file mode 100644 index 00000000..c487d528 --- /dev/null +++ b/modules/sidebar/taxonomies/layouts/partials/hugopress/modules/hb-blog-sidebar-taxonomies/hooks/hb-blog-sidebar.html @@ -0,0 +1,4 @@ +{{- $opts := site.Params.hb.blog.sidebar.taxonomies }} +
diff --git a/release-please-config.json b/release-please-config.json index e94d2a7a..57a04c18 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -27,6 +27,7 @@ "modules/post-nav", "modules/related-posts", "modules/sidebar/posts", + "modules/sidebar/taxonomies", "modules/staticman", "modules/toc-scrollspy", "modules/twikoo", @@ -60,6 +61,9 @@ "modules/sidebar/posts": { "component": "modules/sidebar/posts" }, + "modules/sidebar/taxonomies": { + "component": "modules/sidebar/taxonomies" + }, "modules/staticman": { "component": "modules/staticman" },