You can add CMS static block content in a template file with your module or theme level.
I hope you have created one static block from the admin panel.
Content -> Elements -> Blocks and create a new CMS static block with your specific content. Continue reading “How to get CMS static block content in the template file magento 2?”