블랙프라이데이: 지금 바로 Craft를 평생 40% 할인된 가격으로 만나보세요!

Imagine With Craft

Personal Blog

Personal BlogPersonal Blog

Create a fully-featured blog with tags, archive and search and manage and edit your posts right inside Craft.

Build It Yourself

In this example we will use Craft to manage a personal blog and turn it into a beautiful personal website with posts, tags and search using Lovable.

Step 1Create Your Doc

Our blog posts are kept in a collection: we use the collection fields to manage tags, posting date and the publish status. The content of each blog post is the content of the collection item – this way you can use Craft’s powerful editor to write and polish your blogposts.

Use the template to create a new doc with a collection for your blog, filled with some example posts:

Step 2Enable API Access

Enable API Access for your doc to get a unique URL that can be used to read from and add to your doc.

Click the “Imagine” tab in the sidebar

Step 1

Open the “Imagine” tab
Click “Add Your First API Connection” button

Step 2

Click “Add Your First API Connection”
Configure API connection settings

Step 3

Configure your API connection with a name. 이 프로젝트를 위해서는 API가 문서에 "읽기" 권한이 필요합니다. API 권한을 "읽기"로 선택해주세요.
"문서 추가" 버튼을 클릭하세요

Step 4

"문서 추가"를 클릭한 뒤 Personal Blog 문서를 선택하세요.
API URL이 상단에 표시됩니다

Step 5

문서와 연결되는 API URL이 이제 상단에 표시됩니다
"AI 번들 다운로드" 버튼을 클릭하세요

Step 6

"AI 번들 다운로드" 버튼을 클릭하세요. API 문서와 해당 문서의 내용이 담긴 폴더가 다운로드됩니다.
Keep in mind that all posts in the doc can be loaded from the public API – the “Published” field in the collection will control which ones are displayed on the website, but unpublished ones could be accessed as well.

Step 3Build on Lovable

Now lets go on and build the actual website for our blog on Lovable. For the example site shown above, we used this prompt:

I would like you to build my personal blog.

The information is stored in Craft. Please check the attached file including an example of the current state of my Blog Craft doc, as well as information on the API you should use to get this document and my blog posts. Please read the API documentation carefully and follow its instructions.

I want there to be:
- A landing page showing the last 3 entries and their dates and blurbs, then a link to the archive
- An archive listing all published posts and their dates as a table
- A page for each post with prev/next navigation at the bottom
- A page page that shows all blocks with a certain tag
- There should also be a search functionality
Every post has a published property. Only show those posts where it is set to true.

I want a clean and modern design that pays attention to detail and feels super well crafted. It’s supposed to be sophisticated but not snobby, with great, modern typography and lots of whitespace.

Go to Lovable and paste the prompt into the prompt box. Make sure to attatch the AI Bundle for your document that we just downloaded.

Lovable gets to work, analyzing the content of the bundle to understand the doc structure and how to use the API. Then it starts to build the website according to our prompt.

Now we have a beautiful blog that displays our posts and supports search and tags!

More Ideas For You To Try

Back to the Gallery