mirror of
https://github.com/tjsga/tj-sga-website-react.git
synced 2025-04-21 12:00:17 -04:00
Added short summaries to articles
This commit is contained in:
parent
eb31b39f3f
commit
2cc8e9d7fc
|
@ -2,7 +2,7 @@ import React from 'react';
|
||||||
import imageUrl from '../imageUrl';
|
import imageUrl from '../imageUrl';
|
||||||
import BlockContent from '@sanity/block-content-to-react';
|
import BlockContent from '@sanity/block-content-to-react';
|
||||||
import { Link } from 'react-router-dom';
|
import { Link } from 'react-router-dom';
|
||||||
import "../css/article.css";
|
import '../css/article.css';
|
||||||
|
|
||||||
export default function ArticleRow({
|
export default function ArticleRow({
|
||||||
article,
|
article,
|
||||||
|
@ -36,7 +36,7 @@ export default function ArticleRow({
|
||||||
<br />
|
<br />
|
||||||
<i>{article.author || 'No author'}</i>
|
<i>{article.author || 'No author'}</i>
|
||||||
<br />
|
<br />
|
||||||
<BlockContent blocks={article.content} />
|
<p>{article.summary}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user