only return an author if there is one

This commit is contained in:
rra 2022-05-24 10:00:58 +02:00
parent 3b390d1ecb
commit 6e64d64772
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ title: "{{ frontmatter.title }}"
date: "{{ frontmatter.date }}" #2021-06-10T10:46:33+02:00
draft: false
summary: "{{ frontmatter.summary }}"
authors: ["{{ frontmatter.author }}"]
authors: {% if frontmatter.author %} ["{{ frontmatter.author }}"] {% endif %}
original_link: "{{ frontmatter.original_link }}"
feed_name: "{{ frontmatter.feed_name}}"
categories: ["{{ frontmatter.card_type }}", "{{ frontmatter.feed_name}}"]