rstudio / blogdown

Create Blogs and Websites with R Markdown
https://pkgs.rstudio.com/blogdown/
1.74k stars 331 forks source link

Missing website menu bar buttons when using blogdown to render web pages #753

Closed mengjiezhang4ds closed 1 year ago

mengjiezhang4ds commented 1 year ago

Dear developer team, when I use blogdown to generate a website, the desired effect is that the menu bar button on my website is missing, and I also found it missing after changing the Hugo theme. What is the reason for this?

This is the effect I want:

1

But the website I generated looks like this:

2

My R language version information

`> sessionInfo() R version 4.2.2 (2022-10-31 ucrt) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 22000)

Matrix products: default

locale: [1] LC_COLLATE=Chinese (Simplified)_China.utf8 [2] LC_CTYPE=Chinese (Simplified)_China.utf8
[3] LC_MONETARY=Chinese (Simplified)_China.utf8 [4] LC_NUMERIC=C
[5] LC_TIME=Chinese (Simplified)_China.utf8

attached base packages: [1] stats graphics grDevices utils datasets methods base

loaded via a namespace (and not attached): [1] Rcpp_1.0.10 ps_1.7.5 later_1.3.1 digest_0.6.31
[5] R6_2.5.1 jsonlite_1.8.4 magrittr_2.0.3 evaluate_0.21
[9] blogdown_1.17 rlang_1.1.1 cli_3.6.1 promises_1.2.0.1 [13] rstudioapi_0.14 rmarkdown_2.21 tools_4.2.2 servr_0.27
[17] processx_3.8.1 httpuv_1.6.11 xfun_0.39 yaml_2.3.7
[21] fastmap_1.1.1 compiler_4.2.2 htmltools_0.5.5 knitr_1.43 `

My Hugo version 0.112.5

yihui commented 1 year ago

Please see https://yihui.org/en/2023/05/hugo-112/ and use a lower version of Hugo instead. I'll investigate this issue anyway and hopefully blogdown will work with higher versions of Hugo soon. Thanks for the report!

yihui commented 1 year ago

Should be fixed now. You can install the development version via

remotes::install_github('rstudio/blogdown')
mengjiezhang4ds commented 1 year ago

The new development version of blogdown has worked. Thank you very much. This issue has been bothering me for a week now, and I can continue to move on.