Skip to content
This repository has been archived by the owner on Oct 3, 2024. It is now read-only.

Commit

Permalink
Merge torrust/torrust-website#236: Fix duplicate blog posts
Browse files Browse the repository at this point in the history
70f2f48 fix: [#233] duplicate blog posts (Jose Celano)

Pull request description:

  Fix duplicate blog posts. Blog posts are shown twice in the current version (v1) when they are added to the new version (v2).

ACKs for top commit:
  josecelano:
    ACK 70f2f48

Tree-SHA512: 2f535cc94dd78f9f35830ab127ce4de4e7365844e2ec107e9f42c1e9de54bed5c114550f9d325a53f3a2b548a1eed80e616e1dbe85d9d0e8f062f3b9af399f64
  • Loading branch information
josecelano committed Aug 16, 2024
2 parents 627f0db + 70f2f48 commit 3f82706
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/data/blog-posts/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export const importPosts = (render = false) => {

const posts: BlogPost[] = [];
for (const path in imports) {
if (path.startsWith('/src/routes/v2')) continue;
const post = imports[path] as ImportedModule;
if (post) {
posts.push({
Expand Down

0 comments on commit 3f82706

Please sign in to comment.