Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webpage stops updating after adding publications #517

Closed
ryan-hill opened this issue Apr 16, 2018 · 3 comments
Closed

Webpage stops updating after adding publications #517

ryan-hill opened this issue Apr 16, 2018 · 3 comments

Comments

@ryan-hill
Copy link

I'm using this theme in RStudio Blogdown. After adding several publications (.md) to the /content/publication folder, the whole website stopped updating. At this stage, I was done messing with customizing the theme and was only adding markdown files. I just found where someone else had exactly the same issue here: https://stackoverflow.com/questions/48647839/website-not-updating-with-blogdown-hugo

For a reproducible example:

Thanks for making this theme. It's really amazing!

@gcushen
Copy link
Collaborator

gcushen commented Apr 16, 2018

If you used the hugo --cleanDestinationDir command rather than just hugo, you may need to re-setup your public folder as a Git sub-module. Otherwise, it would be helpful to know if RStudio outputs any errors and the ouput of running hugo -v from your local site folder.

@ryan-hill
Copy link
Author

@gcushen, thanks for your help! I was able to figure out my problem based on your suggestion of running hugo -v in my local site folder (RStudio Blogdown is a wrapper for Hugo so it isn't normally available to users). I had an error in one of my publication markdown files that wasn't throwing an error. Instead, it quietly failed to finish the build. Here is the error message that returned when I ran hugo -v:

ERROR 2018/04/16 22:02:03 failed to parse page metadata for "publication/climate-change.md": Near line 5 (last key parsed 'authors'): expected value but found '' instead
Total in 475 ms
Error: Error building site: failed to parse page metadata for "publication/climate-change.md": Near line 5 (last key parsed 'authors'): expected value but found '
' instead

Again, can't say enough good things about this theme. Thanks again.

@Datacove1
Copy link

Hello - I realise the issue is closed, but wanted to ask @ryan-hill how you managed to resolve this. I've built my website using R studio too and a couple of months ago, my public folder stopped updating, so I'm guessing there's an error somewhere - but I can't find it with the naked eye). Where exactly do I run hugo -v - doesn't sound like an "R thing" - do I need to open up a command window or something? Would be great to try and resolve this otherwise I think I'll have to build the site from scratch :-(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants