Skip to content

Commit

Permalink
Merge pull request #3836 from owid/grapher-baking-remove-wp-topic-page
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelgerber authored Aug 2, 2024
2 parents 285cc81 + 06499b5 commit 9b055dc
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions baker/GrapherBaker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import * as db from "../db/db.js"
import { glob } from "glob"
import { isPathRedirectedToExplorer } from "../explorerAdminServer/ExplorerRedirects.js"
import {
getPostEnrichedBySlug,
getPostIdFromSlug,
getPostRelatedCharts,
getRelatedArticles,
Expand Down Expand Up @@ -259,20 +258,6 @@ export async function renderDataPageV2(
topicTag: firstTopicTag,
citation,
}
} else {
const post = await getPostEnrichedBySlug(knex, slug)
if (post) {
const authors = post.authors
const citation = getShortPageCitation(
authors ?? [],
post.title,
post.published_at
)
datapageData.primaryTopic = {
topicTag: firstTopicTag,
citation,
}
}
}
}

Expand Down

0 comments on commit 9b055dc

Please sign in to comment.