manton
manton
Moving to new Hugo manton.org
|
Embed
matti
matti

@manton 🥳 Wohoo! 🥳

|
Embed
ericmwalk
ericmwalk

@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.

|
Embed
maique
maique

@manton Thank you for the constant updates.

|
Embed
SimonWoods
SimonWoods

@manton 🙌

|
Embed
In reply to
amit
amit

@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?

|
Embed
pimoore
pimoore

@manton Oh wow! 🎉 Thanks for all your hard work on this, I might have to give Tufte a go on a test site.

|
Embed
manton
manton

@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?

|
Embed
manton
manton

@amit Update: You can get the current Hugo version with {{ .Hugo.Version }}. This will be the full version, e.g. "0.91.2"

|
Embed
amit
amit

@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.

|
Embed
manton
manton

@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.

|
Embed
amit
amit

@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.

|
Embed
manton
manton

@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.

|
Embed
amit
amit

@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.

|
Embed
sod
sod

@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.

|
Embed
pimoore
pimoore

@manton Does this new version of Hugo support SASS/SCSS compiling?

|
Embed
manton
manton

@pimoore Yep, it does! I haven't used it myself but @Moondeer confirmed that SCSS works.

|
Embed
Moondeer
Moondeer

@manton @pimoore can confirm

|
Embed
pimoore
pimoore

@Moondeer @manton Oh hell yeah, this changes my development on Hitchens but in a good way.

|
Embed