concept template plugin in category hugo

appears as: template plugins
Hugo in Action: Static sites and dynamic JAMstack apps

This is an excerpt from Manning's book Hugo in Action: Static sites and dynamic JAMstack apps.

Template plugins are useful abstractions over template code that can be reused. Hugo modules also provide us with an ability to have content plugins that can package content that can be reused across multiple websites. One example of content shareable across multiple websites are the terms of use and the privacy policy pages. Websites from the same company share the same terms of use pages across them. We can move these pages in an independent module and import them across those websites for reuse. The pages can use the built-in param function to access site parameters from the config and can also bundle their own shortcodes that can be used to provide common data across multiple websites.