feat(route): add cool paper first-author infomation (#17857)
* [update] update cool paper * [add] add author of cool paper
This commit is contained in:
@@ -34,10 +34,12 @@ export const handler = async (ctx) => {
|
||||
const kimiUrl = new URL(id, apiKimiUrl).href;
|
||||
const pdfUrl = Object.hasOwn(pdfUrlGenerators, site) ? pdfUrlGenerators[site](id) : undefined;
|
||||
|
||||
const authorString = item.author;
|
||||
const description = art(path.join(__dirname, 'templates/description.art'), {
|
||||
pdfUrl,
|
||||
siteUrl: item.link,
|
||||
kimiUrl,
|
||||
authorString,
|
||||
summary: item.summary,
|
||||
});
|
||||
|
||||
@@ -47,7 +49,7 @@ export const handler = async (ctx) => {
|
||||
pubDate: parseDate(item.pubDate ?? ''),
|
||||
link: item.link,
|
||||
category: item.categories,
|
||||
author: item.creator,
|
||||
author: authorString,
|
||||
doi: `${site}${id}`,
|
||||
guid,
|
||||
id: guid,
|
||||
@@ -77,7 +79,7 @@ export const route: Route = {
|
||||
path: '/:category{.+}?',
|
||||
name: 'Topic',
|
||||
url: 'papers.cool',
|
||||
maintainers: ['nczitzk'],
|
||||
maintainers: ['nczitzk', 'Muyun99'],
|
||||
handler,
|
||||
example: '/papers/arxiv/cs.AI',
|
||||
parameters: { category: 'Category, arXiv Artificial Intelligence (cs.AI) by default' },
|
||||
@@ -91,7 +93,7 @@ export const route: Route = {
|
||||
| arXiv Computation and Language (cs.CL) | arxiv/cs.CL |
|
||||
| arXiv Computer Vision and Pattern Recognition (cs.CV) | arxiv/cs.CV |
|
||||
| arXiv Machine Learning (cs.LG) | arxiv/cs.LG |
|
||||
| arXiv Robotics (cs.RO) | arxiv/cs.RO |
|
||||
| arXiv Robotics (cs.RO) | arxiv/cs.RO |
|
||||
`,
|
||||
categories: ['journal'],
|
||||
|
||||
|
||||
@@ -10,6 +10,10 @@
|
||||
<a href="{{ kimiUrl }}">[Kimi]</a>
|
||||
{{ /if }}
|
||||
|
||||
{{ if authorString }}
|
||||
<p><b>Authors:</b> {{ authorString }}</p>
|
||||
{{ /if }}
|
||||
|
||||
{{ if summary }}
|
||||
<p>{{ summary }}</p>
|
||||
{{ /if }}
|
||||
Reference in New Issue
Block a user