From 702db0fc36170cbf7efa4f56a2fe7f605f4319fc Mon Sep 17 00:00:00 2001 From: Sojon Date: Mon, 1 May 2023 10:50:09 +0600 Subject: [PATCH 1/3] added CTA in blog-single --- content/english/platform/capten.md | 9 +++++++-- themes/delta/layouts/_default/single.html | 4 +++- themes/delta/layouts/partials/call-to-action-3.html | 4 ++++ themes/delta/layouts/partials/footer.html | 2 +- 4 files changed, 15 insertions(+), 4 deletions(-) diff --git a/content/english/platform/capten.md b/content/english/platform/capten.md index 59ffe84b..072b551b 100644 --- a/content/english/platform/capten.md +++ b/content/english/platform/capten.md @@ -97,12 +97,17 @@ call_to_action: enable: true title: "Start using
Compage
platform today..." title_color: "#fff" + # subtitle: "" + # subtitle_color: "" image: "images/call-to-actions/compage/robo-image.svg" button_label: "Get Started" button_link: "contact/" bg_color: "#005DFF" bottom_bg_color: "#080338" -footer: - footer_light: false +# footer: +# footer_light: false +# bg_color: "red" +# bg_image: "images/contact-image1.jpg" +# bg_image_overlay_color: "rgba(0,0,0,.85)" --- \ No newline at end of file diff --git a/themes/delta/layouts/_default/single.html b/themes/delta/layouts/_default/single.html index 20e89e59..e3accbd8 100644 --- a/themes/delta/layouts/_default/single.html +++ b/themes/delta/layouts/_default/single.html @@ -121,7 +121,7 @@

{{ .Titl {{ $related := (where site.RegularPages "Section" "in" site.Params.mainSections) | intersect (where site.RegularPages ".Title" "!=" .Title) | union (site.RegularPages.Related . ) }} {{ if $related }} -
+
@@ -156,4 +156,6 @@

{{i18n `related_posts`}}

{{ end }} +{{ partial "call-to-action-2.html" . }} + {{ end }} \ No newline at end of file diff --git a/themes/delta/layouts/partials/call-to-action-3.html b/themes/delta/layouts/partials/call-to-action-3.html index 61459d93..f03ce973 100644 --- a/themes/delta/layouts/partials/call-to-action-3.html +++ b/themes/delta/layouts/partials/call-to-action-3.html @@ -14,6 +14,10 @@

+ + {{ if .subtitle }} +

{{.subtitle | markdownify}}

+ {{ end }} {{ if .button_label }}
{{.button_label}} diff --git a/themes/delta/layouts/partials/footer.html b/themes/delta/layouts/partials/footer.html index dcab61dd..9a798467 100644 --- a/themes/delta/layouts/partials/footer.html +++ b/themes/delta/layouts/partials/footer.html @@ -20,7 +20,7 @@ {{ end }}