- Create content collections for Boilerplate Hunt, Coupon, HaiTang, and OG Generator - Add blog posts and author profiles in English and Chinese - Include corresponding blog post images and avatars - Update blog page routing and pagination to support localized routes - Restore ThemeSwitcher in navbar - Fix pagination route prefix to include locale
19 lines
1.4 KiB
Plaintext
19 lines
1.4 KiB
Plaintext
---
|
||
title: HaiTang 是什么?
|
||
description: 海棠诗社,中华古诗词的数字桃源。
|
||
image: /images/blog/haitang-og.png
|
||
date: 2024-10-26T12:00:00.000Z
|
||
published: true
|
||
categories: [company, news]
|
||
author: haitang
|
||
locale: zh
|
||
---
|
||
|
||
到目前为止,尝试使用 Tailwind 来设计文章、文档或博客文章的样式一直是一项繁琐的任务,需要对排版有敏锐的眼光,并且需要大量复杂的自定义 CSS。
|
||
|
||
默认情况下,Tailwind 会删除段落、标题、列表等所有默认的浏览器样式。这对于构建应用程序 UI 非常有用,因为您花更少的时间撤销用户代理样式,但是当您真的只是尝试设置来自 CMS 中富文本编辑器或 markdown 文件的内容的样式时,这可能会令人惊讶和不直观。
|
||
|
||
我们实际上收到了很多关于它的投诉,人们经常问我们这样的问题:
|
||
|
||
> 为什么 Tailwind 删除了我的 `h1` 元素上的默认样式?我如何禁用这个?你说我也会失去所有其他基本样式是什么意思?
|
||
> 我们听到了您的声音,但我们并不确信简单地禁用我们的基本样式就是您真正想要的。您不希望每次在仪表板 UI 的一部分中使用 `p` 元素时都必须删除烦人的边距。而且我怀疑您真的希望您的博客文章使用用户代理样式——您希望它们看起来很棒,而不是糟糕。 |