Skip to content

Commit

Permalink
Merge branch 'main' into sec-fix/cross-site-post-url
Browse files Browse the repository at this point in the history
  • Loading branch information
NelsonBN authored Jan 26, 2025
2 parents 2b05457 + d744d7c commit c2778a7
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _content/events/dsa-graphs-intro-part2.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Introdução a Grafos - Parte 2 - DSA"
title: "Introdução a Grafos - Parte 2"
description: "Segundo encontro do grupo de estudos referente a Introdução a grafos. Uma live sobre estrutura de dados e algorítimos, onde vamos explorar o mundo dos grafos."
date: "2024-08-09"
time: "21:00-22:30"
Expand Down
15 changes: 15 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"dependencies": {
"@tailwindcss/typography": "^0.5.16",
"@tippyjs/react": "^4.2.6",
"escape-html": "^1.0.3",
"gray-matter": "^4.0.3",
"next": "15.1.6",
"next-themes": "^0.4.4",
Expand All @@ -23,6 +24,7 @@
},
"devDependencies": {
"@eslint/eslintrc": "^3",
"@types/escape-html": "^1.0.4",
"@types/node": "^22",
"@types/react": "^19",
"@types/react-dom": "^19",
Expand Down
5 changes: 3 additions & 2 deletions src/app/topics/[topic]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {getSortedPostsData, formatTopicDisplay, getAllTopics} from '@/lib/posts';
import escapeHtml from 'escape-html';
import Link from 'next/link';
import TopicTags from '@/components/TopicTags';

Expand Down Expand Up @@ -70,14 +71,14 @@ export default async function TopicPage({ params }: Props) {
hiddenTopics={hiddenTopics}
hasHidden={hasHidden}
/>
<Link href={`/posts/${post.id}`}>
<Link href={`/posts/${escapeHtml(post.id)}`}>
<h2 className="text-xl font-semibold text-gray-900 dark:text-white mb-3 hover:text-blue-600 dark:hover:text-blue-400 transition-colors">
{post.title}
</h2>
</Link>
<p className="text-gray-600 dark:text-gray-300 mb-4">{post.description}</p>
<Link
href={`/posts/${post.id}`}
href={`/posts/${escapeHtml(post.id)}`}
className="inline-flex items-center text-blue-600 dark:text-blue-400 hover:text-blue-800 dark:hover:text-blue-300"
>
Ler mais
Expand Down

0 comments on commit c2778a7

Please sign in to comment.