Closed kahosense closed 1 year ago
Hi, No, it's not possible for the theme. Please see this comment; https://github.com/boratanrikulu/eternity/issues/32#issuecomment-1466541237
If image is not changed, Hugo doesn't create it again, it will be cached. So It doesn't upload it for every deployment. It will be deployed only 1 time, if the image is not changed. I don't see any point to use 3rd link as an image source. The theme creates thumbnails, makes resizes.
Hi, No, it's not possible for the theme. Please see this comment; #32 (comment)
If image is not changed, Hugo doesn't create it again, it will be cached. So It doesn't upload it for every deployment. It will be deployed only 1 time, if the image is not changed. I don't see any point to use 3rd link as an image source. The theme creates thumbnails, makes resizes.
Ok, I got it. Because my image is not only used in my Hugo blog. The 3rd link is convenient for use on different platforms without repeated uploads.
Hi, No, it's not possible for the theme. Please see this comment; #32 (comment)
If image is not changed, Hugo doesn't create it again, it will be cached. So It doesn't upload it for every deployment. It will be deployed only 1 time, if the image is not changed. I don't see any point to use 3rd link as an image source. The theme creates thumbnails, makes resizes.
As you said, the image didn't create again. but every time I "hugo" to publish, all the image files will reprocess again. The "modified time" of the file will be updated. Because I use the script to update my blog files, and it depends on the file's ”modified time.” And then, every time I update my blog, it will upload all the image files again.
I don't think this is correct. How do you host your website?
❯ ls -lah public/random_73f_0_3000x0_resize_q75_box.jpg
-rw-r--r-- 1 users 839K Mar 30 11:15 public/random_73f_0_3000x0_resize_q75_box.jpg
❯ hugo
Start building sites …
hugo v0.111.3+extended linux/amd64 BuildDate=unknown
| EN
-------------------+------
Pages | 58
Paginator pages | 0
Non-page files | 0
Static files | 22
Processed images | 122
Aliases | 0
Sitemaps | 1
Cleaned | 0
Total in 215 ms
❯ ls -lah public/random_73f_0_3000x0_resize_q75_box.jpg
-rw-r--r-- 1 users 839K Mar 30 11:15 public/random_73f_0_3000x0_resize_q75_box.jpg
I don't think this is correct. How do you host your website?
❯ ls -lah public/random_73f_0_3000x0_resize_q75_box.jpg -rw-r--r-- 1 users 839K Mar 30 11:15 public/random_73f_0_3000x0_resize_q75_box.jpg ❯ hugo Start building sites … hugo v0.111.3+extended linux/amd64 BuildDate=unknown | EN -------------------+------ Pages | 58 Paginator pages | 0 Non-page files | 0 Static files | 22 Processed images | 122 Aliases | 0 Sitemaps | 1 Cleaned | 0 Total in 215 ms ❯ ls -lah public/random_73f_0_3000x0_resize_q75_box.jpg -rw-r--r-- 1 users 839K Mar 30 11:15 public/random_73f_0_3000x0_resize_q75_box.jpg
Sorry for my bad English.
I mean, all my image files' "modified time" in the "images" folder will update when I "Hugo" every time, except the thumbnails that have been generated.
Like when I "hugo" at 10:07, and all the files updated at 10:07, I don't know if it was normal.
I uploaded all my photos to a media files server. And use the link to my pages. But when I create the public pages. It downloaded all the photos to my root folder locally.
Can I directly use online photos instead of downloading them locally. Because the hugo file size can be reduced and the update speed can be accelerated.