From b6d7f8f1662331a955354cc658dae475d43d7aeb Mon Sep 17 00:00:00 2001 From: Kody Jackson Date: Fri, 24 Feb 2023 11:10:49 -0700 Subject: [PATCH] [Docs site] Styles load update (#7772) * Fix local previews * fix local build errors + typo in early hint --- content/_headers | 2 +- layouts/_default/baseof.html | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/content/_headers b/content/_headers index 67cf13b072cedd8..8f6582fb828e6d4 100644 --- a/content/_headers +++ b/content/_headers @@ -2,4 +2,4 @@ https://:project.pages.dev/* X-Robots-Tag: noindex /* - Link: ; rel=preload; as=style \ No newline at end of file + Link: ; rel=preload; as=style \ No newline at end of file diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 443fb93b8fb688b..8ebb4b0ddae68cc 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -3,7 +3,13 @@ {{- partial "head.meta" (dict "Context" . "Product" .Section) -}} - + {{- if hugo.IsProduction -}} + + {{- else -}} + + {{- end -}} + + {{- block "styles" . -}}{{- end -}} {{- partial "script" (dict "src" "theme.ts" "inline" true "format" "iife") -}}