Live data from Hacker News

How to start a blog using Hugo

flaviocopes.com

61–70 of 111 posts

Re: How to start a blog using Hugo

#61
post #19

I used hugo for a while, but found myself struggling against it more often than I liked. I have since moved on to using other options.

What other options?

I've been using Pelican¹ with m.css², it does math, sitemaps, RSS feeds, code, graphs and a lot other things very nicely for me. Other blog platforms are far from as powerful, what I've tried, with so little hassle.

[1]: https://docs.getpelican.com/

[2]: https://mcss.mosra.cz/

Re: How to start a blog using Hugo

#62

Anyone looking for a static blog but that wants a decent interface for editing, check out forestry.io. once setup, it commits to GitHub for you, your user is none the wiser. If the service ever goes away, you still have your blog in GitHub. And you can deploy anywhere (s3, netlify, etc). I use this setup for my non technical wife.

I think this is just what I was looking for, thanks!

Re: How to start a blog using Hugo

#63
post #56

There is no lack of technical choices when it comes to starting a blog. I can start five blogs in the next 30 minutes, each one on a different platform/infrastructure. What I do lack is something interesting to write about, in a consistent manner. I have been writing code for a long time. I did build some interesting stuff. I'm currently working on a startup that does use some blog-worthy tech: any attempt ends up wi…

I'm not one to give advice, since I don't have a blog of my own. But I'd assume you want to look for an area where (a) you have a natural interest, and (b) for which there aren't a lot of existing resources online.

Re: How to start a blog using Hugo

#64
post #56

There is no lack of technical choices when it comes to starting a blog. I can start five blogs in the next 30 minutes, each one on a different platform/infrastructure. What I do lack is something interesting to write about, in a consistent manner. I have been writing code for a long time. I did build some interesting stuff. I'm currently working on a startup that does use some blog-worthy tech: any attempt ends up wi…

This might be helpful. https://www.perell.com/blog/my-writing-syllabus

Follow David Perell for writing inspiration. https://twitter.com/david_perell/status/1213894632943296516

Re: How to start a blog using Hugo

#65
post #56

There is no lack of technical choices when it comes to starting a blog. I can start five blogs in the next 30 minutes, each one on a different platform/infrastructure. What I do lack is something interesting to write about, in a consistent manner. I have been writing code for a long time. I did build some interesting stuff. I'm currently working on a startup that does use some blog-worthy tech: any attempt ends up wi…

Write about yourself and what you know, its probably the most interesting thing you could write about anyway.

I've been preparing articles for my future blog about my interests and struggles (security, beer, books, mental health). Weird mix but theres no doubt that its more interesting than me trying to force myself to write on one of them consistently

Re: How to start a blog using Hugo

#66

The author seems adamant that blog.domain.com is a worse setup than domain.com/blog - I've seen this argument go back and forth a lot, with both sides claiming advantages and disadvantages. I am interested to hear the consensus from HN users as to which is better, and why.

As he said, a sub domain is often considered a separate domain when it comes to SEO. His other arguments about naming seems rather hand-wavy, though. Security-wise, a subdomain can also be a different origin. Which is often positive, so a flaw in your blogging software doesn't allow someone to extract cookies or so from the main site.

Using a subdomain will only protect host-only cookies (those lacking a domain=… parameter). Cookies that specify a domain deal in subdomains rather than origins, so blog.example.com will be able to see any domain=example.com cookies.

This is why using a completely separate domain can be wise if you’re using a third party to host your blog. At Fastmail when we shifted our blog to Ghost(Pro), we moved the blog from blog.fastmail.com to fastmail.blog, so that they definitely can’t get any cookies we may happen to set on domain=fastmail.com (even though our login cookies are domain=www.fastmail.com and thus safe anyway; defence in depth, and all that; by contrast, our product Topicbox does store its cookies on domain=topicbox.com, so the protection of using topicbox.blog is real there).

Re: How to start a blog using Hugo

#67

When comes to static site, I found that MkDocs[1] is easier to use. I like when I use it with Material theme[2]. [1]: https://www.mkdocs.org/ [2]: https://squidfunk.github.io/mkdocs-material/

MkDocs is great for what it was built for, documentation. I also use the Material theme myself.

For a blog though, it would be a terrible format. They meet very different use cases.

Re: How to start a blog using Hugo

#68
post #42

> Don’t try to be clever by using a localized domain, don’t use .io. .com just gives a better impression... https://gohugo.io - Hugo website > My suggestion is to avoid subdomains completely. https://themes.gohugo.io - Hugo themes https://discourse.gohugo.io - Hugo forum Hmm

It’s a shame there we are so whipped to .com

These days nobody types an address into the search bar so any TLD that's not country based should be fine. I say that because your home country is a fluid concept.

Re: How to start a blog using Hugo

#69
post #42

> Don’t try to be clever by using a localized domain, don’t use .io. .com just gives a better impression... https://gohugo.io - Hugo website > My suggestion is to avoid subdomains completely. https://themes.gohugo.io - Hugo themes https://discourse.gohugo.io - Hugo forum Hmm

the reasoning is the following:

>Note on subdomains: every subdomain, to Google, is a different website. So if your domain is flaviocopes.com, and you create your blog in blog.flaviocopes.com, then that’s a completely new website to Google, and it will have its own ranking separate from the main domain.

So from a SEO perspective it might make sense, if you're running a small blog and traffic is one of your main goals.

Re: How to start a blog using Hugo

#70
post #56

There is no lack of technical choices when it comes to starting a blog. I can start five blogs in the next 30 minutes, each one on a different platform/infrastructure. What I do lack is something interesting to write about, in a consistent manner. I have been writing code for a long time. I did build some interesting stuff. I'm currently working on a startup that does use some blog-worthy tech: any attempt ends up wi…

I'm no expert, my recently minted blog has one post (book review). I came to the conclusion writing is more of an exercise for myself than a venture to produce content for others. Maybe you should first think about why you feel the need to write and who your writing is for?
Post reply on HN