mirror of
https://github.com/wavetermdev/docusaurus-og.git
synced 2026-08-05 13:46:35 -07:00
refactor: add blog post title stlyes in blog.scss
This commit is contained in:
@@ -150,6 +150,10 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.blog-post-title {
|
||||
@include lsd.typography('h3');
|
||||
}
|
||||
}
|
||||
|
||||
.blog-archive-page {
|
||||
|
||||
+1
-2
@@ -2,7 +2,6 @@ import React from 'react'
|
||||
import clsx from 'clsx'
|
||||
import Link from '@docusaurus/Link'
|
||||
import { useBlogPost } from '@docusaurus/theme-common/internal'
|
||||
import styles from './styles.module.scss'
|
||||
|
||||
export default function BlogPostItemHeaderTitle({ className }) {
|
||||
const { metadata, isBlogPostPage } = useBlogPost()
|
||||
@@ -11,7 +10,7 @@ export default function BlogPostItemHeaderTitle({ className }) {
|
||||
|
||||
return (
|
||||
<TitleHeading
|
||||
className={clsx(isBlogPostPage && styles.blogPostTitle, className)}
|
||||
className={clsx(isBlogPostPage && 'blog-post-title', className)}
|
||||
itemProp="headline"
|
||||
>
|
||||
{isBlogPostPage ? (
|
||||
|
||||
-8
@@ -1,8 +0,0 @@
|
||||
@use '../../../../css/utils';
|
||||
@use '../../../../css/lsd';
|
||||
|
||||
@include utils.responsive('lg', 'down') {
|
||||
.blogPostTitle {
|
||||
@include lsd.typography('h3');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user