Skip to content
Open
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
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@ This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-

## Getting Started

First, run the development server:
1. Install dependencies (first time only):

```bash
npm install
```

2. Run the development server:

```bash
npm run dev
Expand Down
23 changes: 19 additions & 4 deletions src/app/post/[id]/PostPageClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -979,10 +979,23 @@ export default function PostPageClient({ postDetails: initialPostDetails, params
</div>

<div className="project-meta">
<span className="project-badge">
<i className={mainPost.github_repo ? "fab fa-github" : "fas fa-comment-alt"}></i>
{getSourceLabel(mainPost)}
</span>
{/* GitHub Repo badge - Made clickable to link to repository (same URL as "View on GitHub" button) */}
{mainPost.github_repo ? (
<a
href={mainPost.github_repo + '?utm_source=opensourceprojects.dev&ref=opensourceprojects.dev'}
target="_blank"
rel="noopener noreferrer"
className="project-badge"
>
<i className="fab fa-github"></i>
{getSourceLabel(mainPost)}
</a>
) : (
<span className="project-badge">
<i className="fas fa-comment-alt"></i>
{getSourceLabel(mainPost)}
</span>
)}
<time className="project-date" dateTime={mainPost.date}>
<i className="fas fa-calendar"></i>
{formatDate(mainPost.date)}
Expand Down Expand Up @@ -1555,6 +1568,8 @@ export default function PostPageClient({ postDetails: initialPostDetails, params
align-items: center;
gap: 0.375rem;
box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
/*no underline, overlines or strikethrough on the anchor link*/
text-decoration: none;
}

.project-date {
Expand Down