mirror of
https://github.com/tabler/tabler.git
synced 2026-10-12 05:06:55 +04:00
Restore the promo top banner on docs and preview (main) (#3137)
This commit is contained in:
1 parent
084d2021d3
commit
c482b48cc0
3 files changed
+15
No files matched your search
@@ -32,6 +32,9 @@ const themeAttributes = themeDataAttributes(themeSettings)
|
||||
const environment = process.env.NODE_ENV || 'production'
|
||||
const isDevelopment = environment === 'development'
|
||||
const min = isDevelopment ? '' : '.min'
|
||||
// The promo top banner loads on Vercel deploys (production and branch previews),
|
||||
// never in local builds or the packaged demo (VERCEL_ENV is unset there).
|
||||
const isVercelDeploy = !!process.env.VERCEL_ENV
|
||||
// RTL swaps tabler/plugin stylesheets for their .rtl.css variants (demo stays LTR)
|
||||
const rtlSuffix = rtl ? '.rtl' : ''
|
||||
|
||||
@@ -262,5 +265,7 @@ const libJsFiles = (head: boolean) => pageLibEntries.filter(([, lib]) => Boolean
|
||||
})
|
||||
</script>
|
||||
<!-- END PAGE SCRIPTS -->
|
||||
|
||||
{isVercelDeploy && <script is:inline src="https://scripts.tabler.io/banner.js" defer data-tblr-ref="tabler-preview-top-banner" />}
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user