revert readonly links
This commit is contained in:
parent
72ffecc197
commit
4a9e6d9e35
2 changed files with 4 additions and 3 deletions
|
@ -3,7 +3,7 @@ import Icon from "astro-iconify";
|
||||||
import type { Link } from "../constants/links";
|
import type { Link } from "../constants/links";
|
||||||
|
|
||||||
export interface Props {
|
export interface Props {
|
||||||
links: readonly Link[];
|
links: Link[];
|
||||||
}
|
}
|
||||||
|
|
||||||
let { links } = Astro.props;
|
let { links } = Astro.props;
|
||||||
|
@ -16,6 +16,7 @@ if (Astro.url.pathname !== "/") {
|
||||||
},
|
},
|
||||||
].concat(links);
|
].concat(links);
|
||||||
}
|
}
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
<nav>
|
<nav>
|
||||||
|
|
|
@ -6,7 +6,7 @@ export type Link = {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
const links: readonly Link[] = [
|
const links: Link[] = [
|
||||||
{
|
{
|
||||||
url: "https://ayos.blog",
|
url: "https://ayos.blog",
|
||||||
icon: "blog",
|
icon: "blog",
|
||||||
|
@ -25,6 +25,6 @@ const links: readonly Link[] = [
|
||||||
icon: "npm",
|
icon: "npm",
|
||||||
set: "gg"
|
set: "gg"
|
||||||
}
|
}
|
||||||
] as const;
|
];
|
||||||
|
|
||||||
export default links;
|
export default links;
|
Loading…
Reference in a new issue