Compulsory adding authors #47
-
Hi bro,
The issue is, when _config.auroa not existed any author, the error will be thrown
In my sense, I believe that it should be optional, as no authors defined, blog author would be caught up |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
@zhenyuan0502 This setup is like this, if you want the author to be yourself, you don't need to configure the author in the post's Front-Meta. If you want to add an author for your post, you have two ways, one is add a preset in the configuration file, then link it to your post by adding a "key" to the author property. If you don't want to configure the author, then you can add the author manually in the Front-Meta by using this template: ---
title: Article Title
date: 2020-08-15 18:49:36
tags:
- Tag
categories:
- Cate
cover: https://cover.png
author:
name: Tom
link: https://tridiamond.tech
avatar: https://avatar.png
--- I just published version 1.2.0, the author template had changed to this for version 1.2.0: # In configuration file:
authors:
TriDiamond:
name: TriDiamond
avatar: https://up.enterdesk.com/edpic_source/44/ff/3d/44ff3d6bd2819d524facfcc33205d4cd.jpg
link: https://github.com/TriDiamond,
description: 'Think like an artist, code like an artisan.'
socials:
github: https://tridiamond.tech
# In Front-Meta
author:
name: TriDiamond
avatar: https://up.enterdesk.com/edpic_source/44/ff/3d/44ff3d6bd2819d524facfcc33205d4cd.jpg
link: https://github.com/TriDiamond,
description: 'Think like an artist, code like an artisan.'
socials:
github: https://tridiamond.tech For more documentation go here: https://aurora.tridiamond.tech/guide/plugins.html#multiple-authors |
Beta Was this translation helpful? Give feedback.
-
@TriDiamond Thank you for your response.
and my configuration look like this with null authors:
Then it will throw the above exception. Although I read
|
Beta Was this translation helpful? Give feedback.
-
@zhenyuan0502 Once that is set, all your posts will inherit this author as the "default" author, unless specified. This makes more sense, because if your post is posted by the default author, you won't need to change anything. If the post is from another author and you want to credit that. Perhaps you are a community you guys have multiple authors. Then setup the "multi-author". Answer to your question, basically if you don't want to declare something, from my understanding is not setting that value at all, instead of having users to set a #! ---------------------------------------------------------------
#! Authors Configs
#! @docs https://obsidianext.tridiamond.tech/guide/authors.html
#! ---------------------------------------------------------------
authors:
Alfred:
name: Nguyên Lưu (Alfred - Yuan)
link:
avatar: https://up.enterdesk.com/edpic_source/44/ff/3d/44ff3d6bd2819d524facfcc33205d4cd.jpg
description: 'Think like an artist, code like an artisan.'
socials:
github: https://tridiamond.tech Then in your Front-Meta, just use: title: Con đường đến với lập trình
author: Alfred
tags:
- about
categories:
- Personal
date: 2021-03-28 22:45:00 That's it~ If you want to just used the author of the site, should edit your configuration like this: For the theme config site:
subtitle: Alfred 's Blog
author: Nguyên Lưu
nick: Alfred - Yuan
description: xxxxxx
language: en
multi_language: true
logo: https://img-blog.csdnimg.cn/20210313122054101.png
avatar: https://img-blog.csdnimg.cn/20210313122054101.png
beian:
number: ''
link: '' Then in your Front-Meta, just use: title: Con đường đến với lập trình
tags:
- about
categories:
- Personal
date: 2021-03-28 22:45:00 |
Beta Was this translation helpful? Give feedback.
@zhenyuan0502
The concept is like this, as the default author, there is no need to write the author over and over in every post's markdown file. Therefore, in the site configure, there is a author property to set the default blog author.
Once that is set, all your posts will inherit this author as the "default" author, unless specified. This makes more sense, because if your post is posted by the default author, you won't need to change anything. If the post is from another author and you want to credit that. Perhaps you are a community you guys have multiple authors. Then setup the "multi-author".
Answer to your question, basically if you don't want to declare something, from my understa…