mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-22 21:47:01 +02:00
fix(v2): blog item styling (#2498)
This commit is contained in:
parent
e902a08b52
commit
e240d1b5aa
1 changed files with 4 additions and 8 deletions
|
@ -58,23 +58,19 @@ function BlogPostItem(props) {
|
|||
className={classnames('margin-bottom--sm', styles.blogPostTitle)}>
|
||||
{isBlogPostPage ? title : <Link to={permalink}>{title}</Link>}
|
||||
</TitleHeading>
|
||||
<div className="margin-bottom--sm">
|
||||
<div className="margin-vert--md">
|
||||
<time dateTime={date} className={styles.blogPostDate}>
|
||||
{month} {day}, {year}
|
||||
</time>
|
||||
</div>
|
||||
<div className="avatar margin-bottom--md">
|
||||
<div className="avatar margin-vert--md">
|
||||
{authorImageURL && (
|
||||
<a
|
||||
className="avatar__photo-link"
|
||||
className="avatar__photo-link avatar__photo"
|
||||
href={authorURL}
|
||||
target="_blank"
|
||||
rel="noreferrer noopener">
|
||||
<img
|
||||
className="avatar__photo"
|
||||
src={authorImageURL}
|
||||
alt={author}
|
||||
/>
|
||||
<img src={authorImageURL} alt={author} />
|
||||
</a>
|
||||
)}
|
||||
<div className="avatar__intro">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue