Closed arungop closed 2 years ago
Could you provide a minimal reproducible example as requested by the issue guide? Thanks!
The first set of metrics didn't show the total time (the second set did), so we don't know how slow it was.
It was about 32 s. I missed that line while copying. Following the guides I added "framewidget" options in these chunks and now the build time is under 7s. But still its a long time considering the speed of hugo. .Rmd file.
That's not a minimal example. If the example is not minimal, there could be many other reasons that cause the problem. If you think plotly and kable are the culprit, it will be more convincing to provide a minimal website project that contains a post that uses only plotly and kable.
Anyway, I tested your repo and wasn't able to reproduce the problem.
With the post data-exploration-of-covid-19-data-india
:
> blogdown::hugo_build()
Start building sites …
| EN
-------------------+------
Pages | 123
Paginator pages | 0
Non-page files | 98
Static files | 118
Processed images | 64
Aliases | 0
Sitemaps | 1
Cleaned | 0
Total in 288 ms
Without the post:
> blogdown::hugo_build()
Start building sites …
| EN
-------------------+------
Pages | 122
Paginator pages | 0
Non-page files | 66
Static files | 118
Processed images | 64
Aliases | 0
Sitemaps | 1
Cleaned | 0
Total in 324 ms
The build times are fairly close.
I created a blog post in hugo using Rmd. It's a post with some plotly plots and kable- tables. Issue is build time is large after this post. I ran
hugo --templateMetrics
and obtained:After that I removed folder containing this post and it's back to normal.
What's wrong here? Any suggestions?