Sharkblog
  • All posts
  • About

Welcome to my Blog - Tue, Jan 18, 2022

Hi,

here I post about Linux stuff. It’s gonna be great!

Whenever I learn a new thing on Linux, that looks like it might be useful to others, I will post a new thing. There is no schedule, so just look every now and then, I guess? Or use the RSS-feed like “normal” people.

Also things will not always be strictly Unix/Linux-centric. For example: In this welcome-post, I will tell you how to add a new blog post to a Hugo-blog! Why? Because I just learned that!

Posts are written in Markdown. You could just create a new md-file in the post-dir ($HUGOHOME/content/post) manually, but there is a hugo-command for that. If you use that, it will add a nice header containing title, date and draft-settings right off the bat! Amazing, right?

shark@tornade:~/projects/web/sharkblog$ hugo new post/welcome.md
Content "/home/shark/projects/web/sharkblog/content/post/welcome.md" created

Now head to the content-directory to see your creation!

shark@shark:~/projects/web/sharkblog/content$ find
.
./post
./post/welcome.md
./about
./about/fynn-and-shark-smol.jpg
./about/fynn-and-shark.jpg
./about/_index.md

The content is divided in post and about, which is why I used find and not ls to see ALL the files. Now go to the post-folder and put that Markdown-content into the welcome-post.

Finally, you build your site by typing “hugo” - that will put the final static site into the /public-folder. Or you type “hugo serve” instead, to have a locally hosted, live-updated version, to monitor what you do in your own browser.

If you need more in-depth insights into Hugo, I’m not the best person to ask, since I’m literally just learning that, but you can always hit the docs!

Alright then, catch you later!

Back to Home


Eat ‘em!’ | © Fynn Fabry 2022 | Sharkblog

Twitter Twitch