简体   繁体   English

无法通过Blogdown更改帖子作者

[英]Can't change post author with blogdown

I have successfully used the blogdown R package for a few months now for the blog of my team at work, until the moment I was not the only author anymore. 几个月来,我已经成功地为工作团队的博客使用了blogdown R包,直到现在我不再是唯一的作者。

At that point I realized that the author's name specified in the blog post was not really taken into account. 到那时,我意识到博客文章中指定的作者姓名并未被真正考虑在内。 Instead, it was read by default from the config.toml . 相反,默认情况下是从config.toml读取的。

The relevant part of my config.toml looks like this: 我的config.toml的相关部分如下所示:

[Author]
name = "Darth Vader"
profile = "https://linkedin.com/in/darthvader/"

And the top part of the specific blog post is structured like follows: 特定博客文章的顶部结构如下:

---
title: A new hope
author: Luke Skywalker
date: '2017-10-10'
---

However, it is Darth Vader that invariably appears as the post author, regardless of what the author: field contains. 但是,无论author:字段包含什么内容,都是Darth Vader总是以帖子作者的身份出现。 If I leave the config.toml 's field empty, then no name at all appears once the .Rmd is rendered. 如果我将config.toml的字段留为空白,则呈现.Rmd时将完全没有名称。

Am I doing something wrong? 难道我做错了什么?

Copying from the discussion under the main post: 从主要帖子下的讨论中复制:

I contacted the theme maintainer and the bug is now gone! 我联系了主题维护者,该错误现在消失了! https://github.com/jbub/ghostwriter/commit/d40349f7692bd3a0b2e99798dba6d6b87c10d12c https://github.com/jbub/ghostwriter/commit/d40349f7692bd3a0b2e99798dba6d6b87c10d12c

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM