Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
fix(Hugo): Don't add tag if it is ""
Browse files Browse the repository at this point in the history
  • Loading branch information
iakdis committed Mar 22, 2023
1 parent 7aa7f0e commit 66b1f26
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/src/ssg/hugo.dart
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,9 @@ class HugoWidgetState extends State<HugoWidget> {

final entry = yaml.entries.first.value;
if (entry is List) {
list.addAll(entry.map((e) => e));
if (entry.isNotEmpty && entry[0].isNotEmpty) {
list.addAll(entry.map((e) => e));
}
}

unsavedList.clear();
Expand Down

0 comments on commit 66b1f26

Please sign in to comment.