Release 2.0.0
I promised that this release will be more refactoring. But in the end, there are so many new features that we had to change the release to 2.0.0 :D
In fact, I'm afraid there will be a lot of bugs due to the big changes, so please post in the issue if you find anything. Better yet, open PR
Changing the approach to development
I will post changes to the master branch more often. If the changes are stable in my opinion, then they will get into the master after some time.
This does not mean frequent releases. A release will only be a commit with the release-x.x.x tag. That is, the current master will not be a release. This way, I hope to speed up the availability of fixes and new features for those who need them. There will be unstable changes in the dev branch, which I'm not sure about
Important changes
I removed a few libraries because they are not really needed, they only leach the project
** Fontawesome.** Don't ever use this in your production projects, it's a great tool for prototyping, but not for production applications. In fact, you use no more than 10% of the icons, while styles and other sources are uploaded to the user, this is terrible. I completely cleaned Fontawesome from the project by replacing the sprite with svg and this gave a rather tangible increase in optimization.
Gallery of pictures. I also don't understand why it is needed in such a form factor, the poet cut it out.
TypeIT. Another useless library I threw away
lazyload. A custom lazyload of images that had one significant problem. Because of him, the printing of pages was deprived of pictures, instead of them there were stubs. I replaced the custom lazyload with a native one, although I do not think it is ideal, but it seems to work well, perhaps in the next release I will play with different lazyload libraries and find a suitable one
New Feature
Okay, let's move on to the changes. And there are really a lot of them.
I focused on website optimization and was able to achieve amazing results for my blog. Although there is still a lot of work to be done.
Img
pictures are now reduced to the size acceptable in my opinion automatically. For example, for summary, they are cropped to the desired size, and articles are proportionally reduced to 1600px width.
Series Post
Now posts can be combined into a series of hurray hurray. this is not a finished feature yet, but it is already quite working
This is how you need to specify in the configuration
taxonomies:
series: 'series'
and so in the article:series: ["hugo_blog"]
I also added hortcode that inserts the list of articles in the series: {{< series "hugo_blog" >}}
. It is necessary to indicate the name of the series.
New Theme for post
I think this is the best topic for large articles
New Footer post
Change the look of share buttons and tags
Button
params:
page:
button:
enable: true
text: Button text
link: /posts/about#u-donate
Google Ads
It would be nice to make money from your blog. I added support for google ads
config:
params:
advertising:
enable: true
google:
client: ca-pub-3866694656503831
slot: 3508167846
You can now embed ads in your article using hortcode: {{< ads circuit=false >}}
Pined post
you can pin your most important post on the homepage. He will not always be the first. pinOnlyToFirstPage: true
. Defines to pin only on the main page, or repeat the post on all pages of the pagination.
params:
pinnedPost: '/posts/guide/2021/investments/how-to-invest-and-where/'
pinOnlyToFirstPage: true
These are the major changes. There were a lot of small ones, if you want to support me, here is my PayPal: https://paypal.me/upagge 😇
I hope to update the documentation in the near future, because there are really many changes