fix archive link bug

This commit is contained in:
Rebecca-Chou 2022-03-27 20:38:11 +08:00
parent 4040cdc232
commit 8e329befda
2 changed files with 1 additions and 2 deletions

View File

@ -32,7 +32,7 @@ export function ArchivePage({ items, type }: Props) {
const url = const url =
type !== "executives" type !== "executives"
? `/${type}/${year}/${term}` ? `/${type}/${year}/${term}`
: `${year}/${term}`; : `/about/${type}/${year}/${term}`;
return ( return (
<li key={url}> <li key={url}>
<Link href={url}> <Link href={url}>

View File

@ -16,7 +16,6 @@ interface Props {
} }
export default function Year(props: Props) { export default function Year(props: Props) {
console.log(props.terms);
return ( return (
<div className={styles.main}> <div className={styles.main}>
<Title>{["Executives", props.year]}</Title> <Title>{["Executives", props.year]}</Title>