B
B
bublick2019-10-17 17:16:31
go
bublick, 2019-10-17 17:16:31

What are they doing on Go Hugo?

I want to start learning go hugo, but I don’t understand why a business might need it.
I understand that the main plus is the smaller size of the output html document, but I don’t understand who cares about this, except for the end user. It seems that code generation on the server is clear to everyone, then why go back.
As my hugo test, I want to remake my simple pet blog with wordpress, but even here I see difficulties. I don’t fully understand:
* how to make a counter of post views and, based on this information, display the most viewed ones
* how to fasten the comment system, so that you can make a block of the most discussed materials, by analogy with views
I would be glad if someone knows the solution. But if not, then what resources are made on Go Hugo? Thanks

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
Oleg, 2019-10-22
@OlegPyatakov

Sites on Hugo and other generators are made in order to get a technically simple site at the end. Such a site is easier to host and maintain: no executable backend, no database, no security issues.
The price for this is the inability to use dynamic functions tied to users, such as a personal account or your comments (you have to use a third-party comment system). For blogs, and this is the main use case for generators, such restrictions are not critical. I can share a more detailed note about my experience with Hugo .
For specific questions:
I doubt that this can be done on a static site generator.
Disqus has an auto-discovery block for other commented posts on the site.
Cackle - has additional widgets, including the rating of the most discussed articles. I didn’t use it myself, but I saw such blocks on sites with Cackle comments.

D
Daria Motorina, 2019-10-17
@glaphire

Static sites differ from dynamic sites in that there is no dynamically managed data, which is what is usually stored in the database. This is the simplest site in terms of backend. You can transfer from WordPress only a conditional frontend, without posts, admin panel, etc. A couple of years ago, a Ruby solution - Jekyll became popular , apparently Go wanted to fill this niche.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question