Spread the word.
Nice & thank you!
When you say .Match "images/*.jpg"
, do you mean images under static/images
?
No, this is all page bundle stuff.
── content
│ └── mybundle
│ ├── images
│ │ ├── photo.jpg
│ │ └── sunset.jpg
│ └── index.md
So, the filter JPEG images in the template for mybundle
above, you can do .Resources.Match "images/*.jpg
or even .Resources.Match "**.jpg
You guys are really busy this year - thank you for this exciting update.
Got it. Thanks. Just was thinking about how to handle images that might be used on every content page.
Yes, that is a common requirement.
I have created this issue to find a solid solution to this and similar:
The Snap & 3rd-Party Releases
Snap Package - the Hugo Snap/SnapCraft package - updated
Docker/CI Image - a Hugo Docker image for Continuous Integration- updated
Fedora Copr - Hugo RPM packages for Fedora and CentOS - updated
Anybody knows how it usually take for the version to be available on brew?
.33 was available less than 2 hours afterward (I think)
.34 still is not available as I type this message
Timeframe I don’t know but looking at GitHub, it hasn’t been updated yet: https://github.com/Homebrew/homebrew-core/blob/master/Formula/hugo.rb
I could do the PR myself but they want you to test it locally. My Macbook is at home (I don’t use it often, Linux FTW ).
If a PR isn’t opened in a couple of hours, I’ll take care of it.
The tagline on Hugo v0.34 release notes says:
Hugo 0.34 adds full glob with super-asterisk support, for example
*.jpg
.
Should it be:
Hugo 0.34 adds full glob with super-asterisk support, for example
**.jpg
.
instead?
Thanks!
What’s wrong with “*.jpg”? I understand it’s not the super-variant, but it is a valid example.
The sentence implies that the example would be one of super asterisk support.
It says “super-asterisk”, but the example is that of the regular asterisk that worked before v0.34, right?
With:
content/
└── page-bundle/
├── index.md
├── images/
│ └── foo.jpg
└── bar.jpg
*.jpg
will still match only bar.jpg
, and not images/foo.jpg
… just as before.
But **.jpg
will match both bar.jpg
and images/foo.jpg
… which is a new feature in Hugo v0.34. So I thought that the v0.34 tagline would contain **.jpg
as an example instead.
I understand what you are saying. My sentence isn’t totally wrong – and not wrong enough for me to update it in two places
They beat me to it. v0.34 has been merged into Brew.
I am speechless - Thank you for that hard work
Hello,
a bit late, but the COPR has been updated today
Regards,
No worries. Updated.
Just wanted to say that I updated from 0.18.1 to 0.34 with no issues other than a warning about disableRSS
and disableSitemap
configs being deprecated in the future. Nice job!