How to Automatically Optimize Images in Hugo

  Рет қаралды 6,910

Eric Murphy

Eric Murphy

Күн бұрын

Пікірлер: 21
@falkens_maze
@falkens_maze 4 ай бұрын
This is going to make handling images so much faster in post creation workflow. One of the most useful videos I've seen on Hugo.
@mithrilmaker7030
@mithrilmaker7030 3 жыл бұрын
My compliments. You explain things VERY clearly. I hope you will do more videos on Hugo in the future!
@chriskeele5516
@chriskeele5516 3 жыл бұрын
nice video. is there a way to optimize image quality without using the Resize method? I've got some banner images that span the width of the page and I'd love to reduce their file size
@johnlug9655
@johnlug9655 3 жыл бұрын
Hugo has its issues. It is brave that you shared.
@keutone626
@keutone626 Жыл бұрын
Maybe I'm too stupid, but I can't get my Shortcode working for showing images. I just want to create a shortcode with an image placeholder, so I can put the respective images into the Markdown files with {{< image-shortcode src="cover.jpg" >}}? What command I need to use in my shortcode? the examples from the Hugo Websites are not working.
@FlorianKnip
@FlorianKnip 2 жыл бұрын
Good stuff. Could you share the link to the repo with us?
@irasemacf2193
@irasemacf2193 3 жыл бұрын
why have i this error: assets\images\%!s(): The filename, directory name, or volume label syntax is incorrect. ??? i'm working with toml files using a [[list]] and i am passing the image like this: image = "angel.jpg". Every element on the list must to show diferents pictures. I can't understand where is the error?
@TashMV
@TashMV 3 жыл бұрын
Sweet thank you so much. One question. How would you put images in the markdown that reference a name in the front matter. I am looking to just grab a name from the front matter and maybe wrap it in a shortcode for processing like you have shown. The end result is a collection of images in the post I can move around within markdown inline. You showed the featured image which is editing the single template, and the shortcode feature to add on extra options outside of markdown, but accessing more images in your front matter is the question :D Love your teaching style.
@EricMurphyxyz
@EricMurphyxyz 3 жыл бұрын
Thanks, glad you enjoyed it! You can access frontmatter from a shortcode with .Page.Params. So, for example, this would get the featured_image from the frontmatter and retrieve it as a resource: resources.Get (printf "images/%s" $.Page.Params.featured_image)
@ElonTusk..
@ElonTusk.. 2 жыл бұрын
how do i grab images from unsplash for my featured image kindly help downloading images for my site is not what I want
@EricMurphyxyz
@EricMurphyxyz 2 жыл бұрын
You just download them from Unsplash? I'm not sure what you're asking
@miracleweb8461
@miracleweb8461 3 жыл бұрын
Thank you for the video! First time seeing your channel and get subscribed! Your videos about VIM and Hugo is amazing, thank you! Can you tell me, please, do you know Golang? I'm just afraid for start to use Hugo, because I don't know golang. Maybe I should learn golang basics first, and then Hugo documentation? I know basics of React.js, but don't want to use Gatsby/Next.js, because of bunch of javascript.
@EricMurphyxyz
@EricMurphyxyz 3 жыл бұрын
Hey, thanks so much! I felt the same way about Hugo when I first started. I didn't want to learn Golang just to use Hugo, but you don't have to. It helps to learn the basics of Go templating, as that's what it uses for the layout files, but that's about it. If you want to build a custom theme for Hugo, check out my video on that for a basic intro to Hugo templates.
@derek-ed1zq
@derek-ed1zq Жыл бұрын
what theme are you using in vs code eric
@EricMurphyxyz
@EricMurphyxyz Жыл бұрын
Tokyo night!
@komalthecoolk
@komalthecoolk 2 жыл бұрын
Awesome video, especially to process the images inline with individuals posts. As someone who's not good at coding, this was very helpful. But it seems that there is no way to align images to center or right. They always seem to be on the left.
@Arpit.J
@Arpit.J 2 жыл бұрын
If they are in Markdown, you can load an image between tags
@MultiMote
@MultiMote 2 жыл бұрын
Thank you so much!
@dimmstreet
@dimmstreet 2 жыл бұрын
Thank you
@jabahuntercrypto
@jabahuntercrypto Жыл бұрын
Awesome
@ra.ul.serrano
@ra.ul.serrano 3 жыл бұрын
excellence
Making Better Websites with Hugo!
15:34
Eric Murphy
Рет қаралды 21 М.
Nobody Understands Online Privacy.
14:11
Eric Murphy
Рет қаралды 195 М.
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН
DeepSeek: The Chinese AI model which has spooked Silicon Valley
2:58
Channel 4 News
Рет қаралды 1,5 М.
Mass Image Optimization
5:51
Chris Titus Tech
Рет қаралды 30 М.
Creating your own Hugo Theme!
17:24
Eric Murphy
Рет қаралды 19 М.
How to Set Up and Configure LF (The Best Terminal File Manager)
16:20
Are you optimally loading your images?
3:38
Steve (Builder.io)
Рет қаралды 65 М.
srcset and sizes attributes - [ images on the web | part one ]
30:08
How JavaScript Ruined the Web
15:02
Eric Murphy
Рет қаралды 119 М.
"Caring about privacy almost ruined my life."
12:40
Eric Murphy
Рет қаралды 124 М.
What is HUGO and Why I use it
11:31
Titus Tech Talk
Рет қаралды 24 М.