cosname / cosx.org

统计之都主站
https://cosx.org
MIT License
265 stars 239 forks source link

use hugo version 0.98.0 #1039

Closed XiangyunHuang closed 2 years ago

XiangyunHuang commented 2 years ago

非常感谢您的PR, 如果您是在为主站投稿, 请将PR的标题改为"投稿:标题+作者的形式",如: "投稿: 数据通灵术 杜亚磊" 并保留下面的内容.

至此,投稿部分的工作结束

投稿指南在这里,有任何问题,可以直接在PR留言,其他问题请联系: editor@cos.name。

XiangyunHuang commented 2 years ago

不知道为啥,以及具体什么时候我本地无法预览主站了?

blogdown:::serve_site()
Launching the server via the command:
  hugo server --bind 127.0.0.1 -p 4297 --themesDir themes -t hugo-xmag -D -F --navigateToChanged
Serving the directory . at http://localhost:4297
Launched the hugo server in the background (process ID: 74795). To stop it, call blogdown::stop_server() or restart the R session.

RStudio View 窗口显示空白

截屏2022-05-07 15 36 49

以为是版本问题,就升级了 hugo 和 blogdown 但是并没有解决。不知道 @yihui 能否在本地预览主站?

> xfun::session_info(c('blogdown', 'rmarkdown', 'knitr'))
R version 4.2.0 (2022-04-22)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Monterey 12.3.1, RStudio 2022.2.2.485

Locale: en_US.UTF-8 / en_US.UTF-8 / en_US.UTF-8 / C / en_US.UTF-8 / en_US.UTF-8

Package version:
  base64enc_0.1.3  blogdown_1.9     bookdown_0.26    bslib_0.3.1     
  digest_0.6.29    evaluate_0.15    fastmap_1.1.0    fs_1.5.2        
  glue_1.6.2       graphics_4.2.0   grDevices_4.2.0  highr_0.9       
  htmltools_0.5.2  httpuv_1.6.5     jquerylib_0.1.4  jsonlite_1.8.0  
  knitr_1.39       later_1.3.0      magrittr_2.0.3   methods_4.2.0   
  mime_0.12        promises_1.2.0.1 R6_2.5.1         rappdirs_0.3.3  
  Rcpp_1.0.8.3     rlang_1.0.2      rmarkdown_2.14   sass_0.4.1      
  servr_0.24       stats_4.2.0      stringi_1.7.6    stringr_1.4.0   
  tinytex_0.38     tools_4.2.0      utils_4.2.0      xfun_0.30       
  yaml_2.3.5      

Hugo version: 0.98.0

Pandoc version: 2.18
yihui commented 2 years ago

我预览没问题。我估计跟 Hugo 版本无关。

把 Viewer 窗口弹到浏览器里能看吗?

XiangyunHuang commented 2 years ago

重启重装都试过之后,才去看了下,原来之前下载后,主题模块没有更新 😭