There are times that your imagination streches beyond markdown’s capabilities. When this happens it can be easiest to use HTML with your post, but Hugo doesn’t always like this. If we create a shortcode though we can switch between markdown and html easily. As shown below.
File: /layouts/shortcodes/rawhtml.html
1
2
<!-- raw html -->
{{.Inner}}
Example Usage
1
2
3
{{<rawhtml>}}
<p>Welcome to <strong>MakeWithHugo</strong></p>
{{</rawhtml>}}
Edd is a PHP and Go developer who enjoys blogging about his experiences, mostly about creating and coding new things he's working on and is a big beliver in open-source and Linux.
Add an RSS Feed
–
Although not as sought-after as they once were, RSS feeds can still be a useful addition to any site - if only to allow Google Webmasters to easily crawl it. Luckily, with Hugo this process is very simple as the functionality comes built in and ready to go for when you need it.
Thumbnail Images on your Hugo Blog Posts
–
Hugo now has the ability to do image resizing, cropping, quality-changing, etc (hooray!) - so how do we use it? In this post we take a look at how to resize images automatically using Hugo. There’s a few different ways to achieve this, depending on what you’re trying to do.
In a Theme - “I want to make thumbnails!” You might run a blog, which on the home page has a list of your blog posts.
Shortcode to Add a Strikethrough
–
There are times that your imagination streches beyond markdown’s capabilities. When this happens it can be easiest to use HTML with your post, but Hugo doesn’t always like this. If we create a shortcode though we can switch between markdown and html easily.