Skip to content

Commit

Permalink
Add CTA buttons/links
Browse files Browse the repository at this point in the history
Link added to home page to FoundriesFactory product page.
Logo now linkes to Foundries homepage.
Button added to home page to book a demo.

QA Steps: checked links, and that the output renders as intended.

This commit addresses MKT-799, "Add Foundries.io liinks to Docs pages"

Signed-off-by: Katrina Prosise <katrina.prosise@foundries.io>
  • Loading branch information
kprosise committed Sep 26, 2024
1 parent b040a22 commit 7459847
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 2 deletions.
30 changes: 30 additions & 0 deletions source/_templates/layout.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,35 @@
{% extends "!layout.html" %}

{% block content %}

{% if pagename == 'index' %}
<div class="hs-cta-embed hs-cta-simple-placeholder hs-cta-embed-113594058449"
style="max-width:100%; max-height:100%; width:210px;height:42.390625px; float: right;" data-hubspot-wrapper-cta-id="113594058449">
<a href="https://cta-eu1.hubspot.com/web-interactives/public/v1/track/redirect?encryptedPayload=AVxigLIIWzcxX4%2FNrWxPWHOgBhzVfx0OFvvTrkWIzly96qdPJavbonSFhIebibvT8NFgoqQGPnLi66aEFxvNopqP05U%2BWKU7NB1PS5a8TOrI6uaaU0eJ7VfozZQFy2Nh5JvueLSIv3pNrCsAQ30JAfRM6SLUQB53PvH2bCuOLkZC2WPZkcm147q5dZHuncs%3D&webInteractiveContentId=113594058449&portalId=26493592" target="_blank" rel="noopener" crossorigin="anonymous">
<img alt="Book a Demo" loading="lazy" src="https://hubspot-no-cache-eu1-prod.s3.amazonaws.com/cta/default/26493592/interactive-113594058449.png" style="height: 100%; width: 100%; object-fit: fill"
onerror="this.style.display='none'"/>
</a>
</div>
{% endif %}

{{ super() }}

{% endblock %}

{% block sidebartitle %}

<a href="https://cta-eu1.hubspot.com/web-interactives/public/v1/track/redirect?encryptedPayload=AVxigLJoSaECsY7AgSp8%2B%2FzAJj9MjRdktrFWem7ZiLYUuwu9Ps5ktV52C%2Fp4Nxue86Go1wQ8PAPPjmbHy5hgIFaiHKCuH8%2BKOg1V2VD010z%2BH2jGMmM%3D&webInteractiveContentId=113594058467&portalId=26493592" target="_blank" rel="noopener" crossorigin="anonymous">
<img src="{{ pathto('_static/' + logo, 1) }}" class="logo"/>
</a>

<div class="version">
{{ version }}
</div>

{% include "searchbox.html" %}

{% endblock %}

{%- block extrahead %}
{{ super() }}
<link rel="stylesheet" href="https://cdn.foundries.io/cookie-consent/2.0.1/cookie-consent.css">
Expand Down
2 changes: 1 addition & 1 deletion source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@
# Note that for Sphinx-RTD v0.6.0 or newer, 'html_baseurl' is used rather
# than canonical_url
html_theme_options = {
'logo_only': True,
'logo_only': False,
'canonical_url': 'https://docs.foundries.io/latest/',
'collapse_navigation': False,
'sticky_navigation': False,
Expand Down
2 changes: 1 addition & 1 deletion source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,4 @@ The FoundriesFactory Platform brings together key features and functions for dev
v93 <https://github.com/foundriesio/docs/blob/main/release-notes/rn_v93.md>
v92 <https://github.com/foundriesio/docs/blob/main/release-notes/rn_v92.md>

.. _FoundriesFactory: https://foundries.io/products/
.. _FoundriesFactory: https://cta-eu1.hubspot.com/web-interactives/public/v1/track/click?encryptedPayload=AVxigLLK0Z66%2FNiNKYD21fVW3XrygFqp0o1etaHiD9RRRp2Q67fr5UptBRX2EeK27YBKm2AP3Quj3YsTFf4zR04TkEyHZ9HoZzR1PlolICwWI0wh8tx3uq0OhDVQ5mrQQPJLnluzDkxhbbz%2Fhkmjf6JbAvCy0CGNeEVjHgcDLbFVswhaQQ%3D%3D&portalId=26493592

0 comments on commit 7459847

Please sign in to comment.