diff --git a/config/_default/hugo.yaml b/config/_default/hugo.yaml index 63e9bad..f761f22 100644 --- a/config/_default/hugo.yaml +++ b/config/_default/hugo.yaml @@ -11,71 +11,18 @@ enableEmoji: true permalinks: blog: /blog/:year/:month/:title -module: - # For some regions can not access the proxy.golang.org, i.e. China. - # See https://hugomods.com/en/blog/2023/04/go-and-hugo-proxy-servers/ for all available proxy servers. - # proxy: https://goproxy.cn,direct - - # The order of module is very important, precedence from top to bottom. - imports: - # gallery modules. - - path: github.com/hbstack/gallery - - path: github.com/hbstack/gallery/modules/breadcrumb - - # syntax highlighting, see https://hbstack.dev/en/docs/modules/syntax-highlighting/. - # - path: github.com/hbstack/syntax-highlighting/styles/github-dark - - # icons modules - - path: github.com/hugomods/icons/vendors/font-awesome - # - path: github.com/hugomods/icons/vendors/mdi - # - path: github.com/hugomods/icons/vendors/simple-icons - # - path: github.com/hugomods/icons/vendors/tabler - # - path: github.com/hugomods/icons/vendors/feather - - # blog comments engine - - path: github.com/hbstack/blog/modules/giscus # (upstream default) - # - path: github.com/hbstack/blog/modules/disqus - # - path: github.com/hbstack/blog/modules/utterances - - # blog table of contents scrollspy - - path: github.com/hbstack/blog/modules/toc-scrollspy - - # blog content panel - - path: github.com/hbstack/blog/modules/content-panel - - # docs comments engine - - path: github.com/hbstack/docs/modules/giscus # (upstream default) - # - path: github.com/hbstack/docs/modules/utterances - # - path: github.com/hbstack/docs/modules/disqus - - # docs table of contents scrollspy - - path: github.com/hbstack/docs/modules/toc-scrollspy - - # docs content panel - - path: github.com/hbstack/docs/modules/content-panel - - # other modules - # - path: github.com/hugomods/google-analytics - - path: github.com/hugomods/google-adsense - - # recommended modules - # check which modules were imported by recommended module by "hugo mod graph | grep recommended". - # see also https://hbstack.dev/en/docs/modules/meta/. - # to remove unused modules, you need to replace the recommended module with modules your need. - - path: github.com/hbstack/meta/recommended - outputs: home: - HTML - - Offline # required by PWA module for displaying the offline pages. + - Offline # required by PWA module for displaying the offline pages. - RSS - - SearchIndex # required by search module. + - SearchIndex # required by search module. - WebAppManifest # required by PWA module to make your site installable. rssLimit: 9 taxonomies: - authors: authors # multiple authors. + authors: authors # multiple authors. tags: tags categories: categories series: series diff --git a/config/_default/module.yaml b/config/_default/module.yaml new file mode 100644 index 0000000..31c4ff3 --- /dev/null +++ b/config/_default/module.yaml @@ -0,0 +1,34 @@ +imports: + # gallery modules. + - path: github.com/hbstack/gallery + - path: github.com/hbstack/gallery/modules/breadcrumb + + # syntax highlighting, see https://hbstack.dev/en/docs/modules/syntax-highlighting/. + # - path: github.com/hbstack/syntax-highlighting/styles/github-dark + + # icons modules + - path: github.com/hugomods/icons/vendors/font-awesome + # - path: github.com/hugomods/icons/vendors/mdi + # - path: github.com/hugomods/icons/vendors/simple-icons + # - path: github.com/hugomods/icons/vendors/tabler + # - path: github.com/hugomods/icons/vendors/feather + + # blog table of contents scrollspy + - path: github.com/hbstack/blog/modules/toc-scrollspy + + # blog content panel + - path: github.com/hbstack/blog/modules/content-panel + + # docs comments engine + - path: github.com/hbstack/docs/modules/giscus # (upstream default) + # - path: github.com/hbstack/docs/modules/utterances + # - path: github.com/hbstack/docs/modules/disqus + + # - path: github.com/hugomods/google-analytics + - path: github.com/hugomods/google-adsense + + # recommended modules + # check which modules were imported by recommended module by "hugo mod graph | grep recommended". + # see also https://hbstack.dev/en/docs/modules/meta/. + # to remove unused modules, you need to replace the recommended module with modules your need. + - path: github.com/hbstack/meta/recommended