Adding Emoji in Hugo Post 😄

I’ve seen a particular Hugo theme called hello-friend which I liked and choose to start with it. However, in a post I thought of adding an emoji (a simple 😄). But it didn’t work, and the reason is that the template did not use a parsing for them. However Hugo supports them, and I only hade to change this in one place in the template to make it work. So in themes/hello-friend/layouts/_default/single.html change :

Read more →

Blogging with Hugo

Following a guide from Ryan in youtube.. (https://www.youtube.com/watch?v=LIFvgrRxdt4)

What you need:

  • 2 repos, one for the code of the site and one to deploy (we are going to use github pages)

Those two repos will be joined using git submodule.

In the code repo do: git submodule add -b main <github pages repo> public Where the -b main is the branch of the repo, abd public is the folder that will be linked within the code repo and will point to that branch of the github pages repo.

Read more →