Skip to content

Commit

Permalink
updated more javascript code blocks to typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
Lewkans committed Nov 8, 2024
1 parent b1e6fdb commit a23f314
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions content/docs/guides/converting-wordpress-to-tina.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Migrating WordPress Content
last_edited: '2024-11-08T05:17:50.418Z'
last_edited: '2024-11-08T05:20:16.628Z'
next: ''
previous: ''
---
Expand Down Expand Up @@ -173,7 +173,7 @@ coverImage: /uploads/picture_post_1.png

2\. In `tina/collection/post.ts`, add a new field with the name `coverImage`.

```javascript
```typescript
fields: [
{
type: 'image',
Expand All @@ -188,7 +188,7 @@ fields: [

> You can also copy or rename the `heroImg` code snippet and edit to fit your needs
```javascript
```typescript
return (
// .... Your title and author components
// Example coverImage rendering
Expand Down

0 comments on commit a23f314

Please sign in to comment.