mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-16 17:52:29 +02:00
fix(v2): use tag time for showing post item date (#1964)
* fix(v2): use tag time for showing post item date * refactor: use rem for font-size
This commit is contained in:
parent
6546c194fb
commit
3823feb276
2 changed files with 6 additions and 2 deletions
|
@ -48,9 +48,9 @@ function BlogPostItem(props) {
|
||||||
<Link to={permalink}>{title}</Link>
|
<Link to={permalink}>{title}</Link>
|
||||||
</h1>
|
</h1>
|
||||||
<div className="margin-bottom--sm">
|
<div className="margin-bottom--sm">
|
||||||
<small>
|
<time dateTime={date} className={styles.blogPostDate}>
|
||||||
{month} {day}, {year}
|
{month} {day}, {year}
|
||||||
</small>
|
</time>
|
||||||
</div>
|
</div>
|
||||||
<div className="avatar margin-bottom--md">
|
<div className="avatar margin-bottom--md">
|
||||||
{authorImageURL && (
|
{authorImageURL && (
|
||||||
|
|
|
@ -8,3 +8,7 @@
|
||||||
.blogPostTitle {
|
.blogPostTitle {
|
||||||
font-size: 3rem;
|
font-size: 3rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.blogPostDate {
|
||||||
|
font-size: 0.9rem;
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue