From ea5634b3fd5f6cc6815d773fc39cb76421731177 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 3 May 2023 21:55:33 +0530 Subject: [PATCH] When parsing theme metadata ignore the name if it is the placeholder value from the template --- tools/themes/collection.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/themes/collection.go b/tools/themes/collection.go index 34499a3c4..7317d37e3 100644 --- a/tools/themes/collection.go +++ b/tools/themes/collection.go @@ -507,7 +507,9 @@ func parse_theme_metadata(path string) (*ThemeMetadata, map[string]string, error val = strings.TrimSpace(val) switch key { case "name": - ans.Name = val + if val != "The name of the theme (if not present, derived from filename)" { + ans.Name = val + } case "author": ans.Author = val case "upstream":