Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

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

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

Already on GitHub? # to your account

en/2021/11/blogdown-v1-6/ #167

Closed
utterances-bot opened this issue Jan 11, 2022 · 9 comments
Closed

en/2021/11/blogdown-v1-6/ #167

utterances-bot opened this issue Jan 11, 2022 · 9 comments

Comments

@utterances-bot
Copy link

blogdown v1.6: Support for the config/ Directory, and Improvements in install_hugo()/new_post() - Yihui Xie | 谢益辉

https://yihui.org/en/2021/11/blogdown-v1-6/

Copy link

谢谢一辉大神的blogdown。我在使用中有个问题不知道怎么解决,用R代码生成的图片的标签“figure”怎么像bookdown里面能定义成其他文本呢?

yihui added a commit to rstudio/blogdown that referenced this issue Jan 13, 2022
@yihui
Copy link
Owner

yihui commented Jan 13, 2022

首先安装开发版本的 blogdown:

remotes::install_github('rstudio/blogdown')

然后重启 R。在网站的根文件夹下添加 _bookdown.yml 文件,照 bookdown 的配置写就好了:https://bookdown.org/yihui/bookdown/internationalization.html

@XiangyunHuang
Copy link

有点奇怪为什么不是 _blogdown.yml 而是 _bookdown.yml?

@yihui
Copy link
Owner

yihui commented Feb 21, 2022

确实是用 _blogdown.yml 更合适,只是因为这纯粹是 bookdown 的功能,就懒得改名字了。

@XiangyunHuang
Copy link

感觉再次印证自己有点强迫症,还是更喜欢 _blogdown.yml

@yihui
Copy link
Owner

yihui commented Feb 22, 2022

理解。如果 blogdown 还有别的配置选项的话,那我可以用这个文件名;问题是目前 blogdown 没有特别的配置需要单独写这么个文件。

@XiangyunHuang
Copy link

确实。目前我的博客项目下有三个配置文件 .Rprofilenetlify.tomlconfig.toml,现在又来了个 _bookdown.yml,但是最后这个干的事又不多。也许博客配置这块有简化整合的空间?

@yihui
Copy link
Owner

yihui commented Feb 22, 2022

每个工具都有自己的配置文件,这很难统一。要统一的话,必须所有工具都支持同一个配置文件。

@XiangyunHuang
Copy link

嗯嗯,确实。

Repository owner locked and limited conversation to collaborators Dec 15, 2022
@yihui yihui converted this issue into discussion #229 Dec 15, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants