Hide swag CTA on the Why Fleet docs page (it's kinda weird because it's like "we just met...") (#44269)
## Summary - Hides the "Request Fleet swag" sidebar CTA on the `/docs/get-started/why-fleet` page (the default docs landing page) - Adds `'Why Fleet'` to the title exclusion list in the `v-if` condition on the right-sidebar swag CTA in `website/views/pages/docs/basic-documentation.ejs` - The swag CTA continues to appear on all other docs pages as before ## Changes **`website/views/pages/docs/basic-documentation.ejs`** (line 59): Added `'Why Fleet'` to the array of excluded page titles in the `v-if` directive that controls visibility of the right-sidebar swag CTA. Built for [Mike McNeil](https://fleetdm.slack.com/archives/D0AFASLRHNU/p1777339712703759) by [Kilo for Slack](https://kilo.ai/features/slack-integration) Co-authored-by: kiloconnect[bot] <240665456+kiloconnect[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
kiloconnect[bot]
parent
522bf825bb
commit
343ffdac8b
+1
-1
@@ -56,7 +56,7 @@
|
||||
<p purpose="subtopics-heading" class="font-weight-bold" v-if="!_.isEmpty(subtopics)">On this page:</p>
|
||||
<div purpose="subtopics" v-if="!_.isEmpty(subtopics)">
|
||||
<a purpose="subtopic-link" v-for="(subtopic, index) in subtopics" :href="subtopic.url">{{subtopic.title}}</a>
|
||||
<div class="d-none d-lg-block" purpose="swag-cta" v-if="showSwagForm && !['REST API', 'Fleet server configuration'].includes(thisPage.title)">
|
||||
<div class="d-none d-lg-block" purpose="swag-cta" v-if="showSwagForm && !['REST API', 'Fleet server configuration', 'Why Fleet'].includes(thisPage.title)">
|
||||
<a class="d-flex align-items-center justify-content-center" @click="clickSwagRequestCTA()">
|
||||
<div class="d-flex flex-column align-items-center">
|
||||
<img style="height: auto; width: 47px; margin-bottom: 8px;" alt="A very nice Fleet branded shirt" src="/images/fleet-shirt-60x55@2x.png">
|
||||
|
||||
Reference in New Issue
Block a user