Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/components/Card/CardHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ export const CardHeader = ({
</time>
)}
{readTime && (
<p className="border-l border-cu-black-200 ml-2 pl-3 flex flex-row items-center italic text-sm text-cu-black-600 dark:text-white @sm:md:text-base">
<p
className={`${date ? 'border-l border-cu-black-200 ml-2 pl-3' : ''} flex flex-row items-center italic text-sm text-cu-black-600 dark:text-white @sm:md:text-base`}
>
{readTime} min read
</p>
)}
Expand Down
1 change: 0 additions & 1 deletion lib/data/NewsData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ export const NewsData = [
alt: 'AI Research Lab',
excerpt:
'Carleton University has launched a new AI research lab to advance the field of artificial intelligence and machine learning. The lab will focus on cutting-edge research and collaboration with industry partners.',
date: '2023-09-15 09:00:00',
readTime: '5',
tags: {
category: [
Expand Down