Skip to content

A platform for community discussion. Free, open, simple.

DEV: Include "_learn_more" key in theme `about.json`

David Taylor033cd4f31d91
diff --git a/app/models/theme.rb b/app/models/theme.rb
index 39c2b9a44fc..0abbbc7cc99 100644
--- a/app/models/theme.rb
+++ b/app/models/theme.rb
@@ -454,6 +454,8 @@ class Theme < ActiveRecord::Base
end
end
+ meta[:_learn_more] = "https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966"
+
end
end
end
diff --git a/spec/components/theme_store/tgz_exporter_spec.rb b/spec/components/theme_store/tgz_exporter_spec.rb
index 12dd7634b23..eb3104e3c32 100644
--- a/spec/components/theme_store/tgz_exporter_spec.rb
+++ b/spec/components/theme_store/tgz_exporter_spec.rb
@@ -88,7 +88,8 @@ describe ThemeStore::TgzExporter do
"header_background": "1E1E1E",
"tertiary": "858585"
}
- }
+ },
+ "_learn_more": "https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966"
)
expect(File.read("common/body_tag.html")).to eq("<b>testtheme1</b>")