mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-14 09:58:50 -04:00
Add some copy buttons
This commit is contained in:
parent
9e1cc0c2b1
commit
94bce999a2
@ -29,7 +29,7 @@ Since the Portable Text gets converted to Markdown before it gets passed to Hugo
|
|||||||
|
|
||||||
### Content Adapter
|
### Content Adapter
|
||||||
|
|
||||||
{{< code file=content/_content.gotmpl >}}
|
{{< code file=content/_content.gotmpl copy=true >}}
|
||||||
{{ $projectID := "mysanityprojectid" }}
|
{{ $projectID := "mysanityprojectid" }}
|
||||||
{{ $useCached := true }}
|
{{ $useCached := true }}
|
||||||
{{ $api := "api" }}
|
{{ $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.
|
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 {defineConfig} from 'sanity'
|
||||||
import {structureTool} from 'sanity/structure'
|
import {structureTool} from 'sanity/structure'
|
||||||
import {visionTool} from '@sanity/vision'
|
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
|
npm i sanity-plugin-media @sanity/code-input
|
||||||
```
|
```
|
||||||
|
|
||||||
{{< code file=schemaTypes/index.ts >}}
|
{{< code file=schemaTypes/index.ts copy=true >}}
|
||||||
import {postType} from './postType'
|
import {postType} from './postType'
|
||||||
|
|
||||||
export const schemaTypes = [postType]
|
export const schemaTypes = [postType]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user