Moving to new Hugo: manton.org
@manton wow this is great! Seeing how I am using one of the themes you mentioned is already upgraded I am going to take the plunge and do all the upgrades š. Probably not said enough but thanks for all your hard work you put into Micro.blog. I am glad I found this place a little over a year ago.
@manton Brilliant, thank you Manton! There are some functions that are different between these two releases too. I will have to update the Post Stats plug-in too. Also enables a few things that earlier version didnāt. So exciting!
BTW how do you recommend handling plug-in versions targeting different Hugo versions?
@amit Thanks! I havenāt thought about how to manage multiple Hugo versions from the same plug-in yet. If Hugo doesnāt have something built-in for this, maybe I should just add the version as a param that can be checked in templates?
@amit Update: You can get the current Hugo version with {{ .Hugo.Version }}
. This will be the full version, e.g. ā0.91.2ā
@manton Yeah, I think supporting the plug-ins that target different Hugo versions might be tricky. What if someone has an older version of a plug-in installed which works well with 0.54 Hugo versions. But also has a version for 0.91? Hmm.
@amit If it comes to it, we can add a required Hugo version to the plug-in config and Micro.blog can manage it. I donāt love that, though, so hopefully it can be avoided.
@manton Nice! This would help to have a single version of plug-in support both Hugo versions. I guess there also needs a way for plug-in to convey what version of Hugo they work with? Via config, maybe? For example, I know Post Stats will fail if someone with 0.91 installs it.
@amit Maybe I need to add an āexperimentalā disclaimer to the 0.91 option until we have more experience updating plug-ins. š Letās see how it goes over the next month. Itās not going to be the default for a while.
@manton Posted the comment at the same time as yours. I agree, would be good if it can be avoided. But if the config is done right, upgrading Hugo in the backend would be simpler.
@manton Yay! š Iāve exposed my plug-ins to the new Hugo version, and everything seems to chug along just fine. Thanks for enabling this.