From 94bce999a27fa2234bce58b12d3b278b98272adb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Wed, 26 Feb 2025 20:19:47 +0100 Subject: [PATCH] Add some copy buttons --- content/en/functions/transform/PortableText.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/en/functions/transform/PortableText.md b/content/en/functions/transform/PortableText.md index c886290ca..e87b07af4 100644 --- a/content/en/functions/transform/PortableText.md +++ b/content/en/functions/transform/PortableText.md @@ -29,7 +29,7 @@ Since the Portable Text gets converted to Markdown before it gets passed to Hugo ### Content Adapter -{{< code file=content/_content.gotmpl >}} +{{< code file=content/_content.gotmpl copy=true >}} {{ $projectID := "mysanityprojectid" }} {{ $useCached := true }} {{ $api := "api" }} @@ -100,7 +100,7 @@ Since the Portable Text gets converted to Markdown before it gets passed to Hugo Below outlines a suitable Sanity studio setup for the above example. -{{< code file=sanity.config.ts >}} +{{< code file=sanity.config.ts copy=true >}} import {defineConfig} from 'sanity' import {structureTool} from 'sanity/structure' import {visionTool} from '@sanity/vision' @@ -190,7 +190,7 @@ Note that the above requires some additional plugins to be installed: npm i sanity-plugin-media @sanity/code-input ``` -{{< code file=schemaTypes/index.ts >}} +{{< code file=schemaTypes/index.ts copy=true >}} import {postType} from './postType' export const schemaTypes = [postType]