Publications shown in local build but not live netlify site

I’ve built a site using the hugo-academic theme with blogdown.

The site is currently live at https://hardcore-mcnulty-8b0cab.netlify.com/ When I build that site locally using blogdown::serve_site() there are 2 publications listed in the publications widget. However, these are not shown when the site is deployed on netlify. The netlify logs are not showing an error and the .md files have been uploaded correctly to the site’s github repo (https://github.com/ekothe/academic-lab).

Both netlify and my local machine are using HUGO_VERSION 0.41

Weirdly, I have also built other sites using the same theme that have the same publications listed in the publications folder. On those sites the publications are shown correctly on the netlify deployed version of the site. The .mds for the working sites and the not working sites are identical.

Not really sure where to go from here, any suggestions?

I’m not familiar with what that Blogdown command does, but I do see that the two content files in content/publication/ have a date that’s set in the future (2018-07-01T00:00:00).

I don’t know what the default settings are of Blogdown and your Netlify website, but it might be that Blogdown renders future content by default, and Netlify does not.

You might try and see what happens when those two content files have a date in the past, like June 1 instead of July 1.

Hope this helps.

You should start by checking the Hugo version you run with on Netlify:

Thanks @Jura, that fixed it. I can’t believe I’d managed to miss something so simple :smiley:

A post was split to a new topic: How do I run a local web server?