How to escape Hugo shortcode

Sometimes you need to write about shortcodes, as I do in Insert raw HTML in Hugo with a simple shortcode, you need to escape these shortcode calls. Hugo uses the following syntax to escape these delimiters in the a content source file {{< escape's_shortcode_name >}} {{% /escape's_shortcode_name %}}

April 2, 2022 · 1 min · Andrew Wu

Insert raw HTML in Hugo with a simple shortcode

I love to use Markdown to write my notes to help me learn new things. And sometimes, if I forget something, I can use my notes to help me remember how to do it. But Markdown in a table or some layouts is not pretty to use, so I have to insert raw HTML to help me create a stunning table or some designs you want. What a Shortcode is? Hugo loves Markdown because of its simple content format, but there are times when Markdown falls short....

April 1, 2022 · 1 min · Andrew Wu

How to add an RSS feed to your Hugo PaperMod theme?

Hugo is a popular static site generator, and PaperMod comes with a default RSS 2.0 template. What is an RSS feed? RSS stands for Really Simple Syndication, and it’s is a simple, standardized content distribution method that can help you stay up-to-date with your favorite newscasts, blogs, websites, and social media channels. Means supported an RSS feed function on your blog, can keep those who follow you up-to-date with your newest posts....

February 6, 2022 · 1 min · Andrew Wu

How to integrate Disqus into your Hugo site?

What is Disqus? The internet’s favorite comment plug-in makes it easy for publishers to bring their content to life, fuel colorful discussions, efficiently moderate comments, and build engaged communities. Step by step to integrate Disqus into your Hugo Site Step 1: Sign up for Disqus Step 2: Install Disqus Step 3: Chose “I want to install Disqus on my site.” Step 4: Fill in the Form details for your Hugo site Step 5: Copy the discussion templates, and create a disqus....

February 5, 2022 · 2 min · Andrew Wu

How to add Google Analytics to Hugo?

What is Google Analytics? Google Analytics is a web analytics service that provides statistics and basic analytical tools for search engine optimization (SEO) and marketing purposes. The service is part of the Google Marketing Platform and is available for free to anyone with a Google account. How to add google analytics to Hugo site? Step 1: Create a google account Step 2: Go to google analytics site Step 3: Set up your site details in google analytics Step 4: Get your site google analytics ID Step 5: Set up your Hugo config....

February 4, 2022 · 1 min · Andrew Wu