Hi, I’m using netlify to deploy my site. On a particular article, I use the frontmatter summary property to set the summary. Locally everything runs fine, but on netlify, the summary is blank.
Locally, if I rely on the automatic summary making, I also have a blank summary, because my article begins with an HTML iframe.
I suppose the behaviour on netlify is due to a hugo bug that is not visible on my laptop, maybe because there is less concurrent building on it?
Oh and by the way, maybe the automatic summary should work even if the content file begins with an iframe (ignore the iframe and get the text after it)? Should I submit a bug?
Oh and by the way, maybe the automatic summary should work even if the content file begins with an iframe (ignore the iframe and get the text after it)? Should I submit a bug?
No I don’t think you should. I think much of what you discussed is well documented here
I red that documentation before posting, and checking things now that you point it, I realize that Hugo build a correct automatic-summary on my local server, even with an iframe at the beginning of the article.
Things happens when deploying on netlify and having an iframe at the beginning of the article. Neither automatic summary, nor frontmatter plain text summary works, and I stay with a blank summary on my production site. Using Hugo v. O.55.6 on both sides (locally, and on netlify)
I know this (probably) won’t help, but I downloaded your repository (had to use the .zip option as git clone failed…that might be worth looking into). Building it on my Mac using Hugo 0.55.6 displays the summary (as you reported).
One thing I noticed is it took hugo ages to build the site the first time (21 secs). I deleted some of the unused themes and build time dropped to 2 secs.
Have you checked your netlify logs? Just wondering whether the site is failing to be rebuilt or deployed? Is there anything you can do to speed things up (delete some unused things, switch to git lfs for your assets)?
Hi, thanks for all your replies @Weru, my repo is public, it is here: https://github.com/pau-a-velo/pau-a-velo-websource. funkydan2 told he could only download the zip and git clone failed for him. Have no clue why this, except maybe french accents? Just checked my github repo and didn’t found any special option that could prevent git clone to work. I use this repo only with push as I am the only user. @zwbetz , I tried your netlify build command, still a blank summary on netlify @funkydan2, you lucky guy with a mac, on my windows surface3 it takes more than 2 minutes to build the first time. I was full of hope reading your message, but deleting unused themes didn’t improve this on my computer, time didn’t drop to 10s or so, still 2 minutes of waiting. I have a lot of images, and static files, and I think hugo could optimize this if there was an option not to update any static file that he already processed to the output directory (resized images especially), when using hugo server command. I posted something about this problem on this forum. Could you reply there what command you did to drop down build time, especially the command you used (hugo or hugo server ?)
Thanks a lot, and still hoping to find a way to display a correct summary on netlify
When I run git clone https://github.com/pau-a-velo/pau-a-velo-websource.git this is the output:
Cloning into 'pau-a-velo-websource'...
remote: Enumerating objects: 6145, done.
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
Though if Netlify is building when you push changes, then that’s unlikely to be the issue.
On the zipped download, I ran simply ran hugo server from the command prompt and looked at the local site in Firefox.
summary: "Ce dimanche 16 juin, c'était la quatrième et dernière balade du cycle 'Révélation', en partenariat avec l'association Destination Patrimoine. Cette promenade nous a emmené le long de la rivière Ousse des Bois, et comme toute les sorties du cycle, elle nous a permis de découvrir notre agglomération par l'angle de l'urbanisme et du paysage."
I see a lot of special characters there. Maybe Netlify is misunderstanding the ' parts. Where is the template that displays/creates the summary?
Also would you mind to post the complete log from a Netlify deploy? Maybe that gives some hint on whats happening.
I have to try without quotes and will give you the results. But strange thing is that locally everything build ok on my computer and on the computer of 2 or 3 other persons that tried it out of curiosity.
@funkydan2 thanks a lot for your reply. Scoping of .Scratch was the matter. Reading the article you pointed helped me arrange the way I called the .Scratch function within range. It seems that other side effects of this .Scratch scope problem disappeared with my fix.
partialCached was not the problem. I use this function because the same card appears in different places: in the blog listing, but also in the suggestions at the end of an article, and in the taxonomy pages (pages that list articles for a given tag).
Still, it’s not very clear to me why the code worked locally, but not on netlify. I guess it has to do with parallel processing of pages.