fix archive link bug
This commit is contained in:
parent
4040cdc232
commit
8e329befda
|
@ -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}>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue