Skip to content

Commit

Permalink
chore: update title
Browse files Browse the repository at this point in the history
  • Loading branch information
Soontao committed Jul 10, 2024
1 parent 31a0c92 commit d27f4a3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/customize/hf/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ const endpoint = createGenericEndpoint({
.slice(0, 5)
.map((item) => "https://huggingface.co" + $(item).attr("href")),
contentExtractor: async ($) => {
const translate = require("@/utils/translate");
const data = JSON.parse($("main section div.contents").attr("data-props"));
const title = await translate(data.paper.title.replace(/\n/g, ""));
const title = data.paper.title.replace(/\n/g, "");
const summary = data.paper.summary;
const description = markdownToHtml(`## ${data.paper.title}\n\n${summary}\n\n[Full PDF](https://arxiv.org/pdf/${data.paper.id})`);
const pubDate = data.publishedOnDailyAt;
Expand Down

0 comments on commit d27f4a3

Please sign in to comment.