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

View File

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