refactor: replace cta with small cta

This commit is contained in:
Shivam Mishra 2020-06-01 18:33:03 +05:30
parent 9e358261f1
commit b00fb8bd21
3 changed files with 5 additions and 20 deletions

View file

@ -112,9 +112,7 @@ class BlogPost(WebsiteGenerator):
"title": blog_settings.title,
"subtitle": blog_settings.subtitle,
"cta_label": blog_settings.cta_label,
"cta_url": blog_settings.cta_url,
"cta_description": blog_settings.cta_description,
"show_confetti": blog_settings.show_confetti
"cta_url": blog_settings.cta_url
}
return {}

View file

@ -48,7 +48,7 @@
{% if not hide_cta %}
{{ web_blocks([
{
'template': "Section With CTA",
'template': "Section With Small CTA",
'values': cta,
'add_container': 0,
'add_top_padding': 0,

View file

@ -13,11 +13,9 @@
"cta_section",
"title",
"subtitle",
"cta_label",
"cta_url",
"column_break_11",
"cta_description",
"show_confetti"
"cta_label",
"cta_url"
],
"fields": [
{
@ -80,24 +78,13 @@
{
"fieldname": "column_break_11",
"fieldtype": "Column Break"
},
{
"fieldname": "cta_description",
"fieldtype": "Data",
"label": "CTA Description"
},
{
"default": "0",
"fieldname": "show_confetti",
"fieldtype": "Check",
"label": "Show Confetti"
}
],
"icon": "fa fa-cog",
"idx": 1,
"issingle": 1,
"links": [],
"modified": "2020-06-01 13:41:44.150987",
"modified": "2020-06-01 15:57:21.564652",
"modified_by": "Administrator",
"module": "Website",
"name": "Blog Settings",