Skip to content

Commit

Permalink
Update MetaCitation.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
dccommon committed Apr 1, 2024
1 parent d829d76 commit d1d4800
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/feature/metaCitation/MetaCitation.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import Head from "next/head";
import { FC } from "react";

import { dateToYYYYMMDD } from "@/lib/formatDate";
import { ROUTES, toPublicUrl } from "@/lib/routes";
import { AuthorModel, PaperModel } from "@/models/models";
Expand All @@ -12,6 +11,7 @@ export type MetaCitationProps = {
export const MetaCitation: FC<MetaCitationProps> = ({ paper }) => {
const publishDate = new Date(paper.publishDateStr);
const date = dateToYYYYMMDD(publishDate, "/");

const lang = {
english: "en",
japanese: "ja",
Expand Down Expand Up @@ -54,7 +54,7 @@ export const MetaCitation: FC<MetaCitationProps> = ({ paper }) => {
{paper.pdfUrl && (
<meta name="citation_pdf_url" content={toPublicUrl(paper.pdfUrl)} />
)}
<meta name="citation_keywords" content={paper.keywords.join("; ")} />
<meta name="citation_keywords" content={paper.keywords.length > 0 ? paper.keywords.join("; ") + "." : ""} />
</Head>
);
};
Expand Down

0 comments on commit d1d4800

Please sign in to comment.