refactor: move links to index
This commit is contained in:
parent
460632ac73
commit
4d4d3e70b6
2 changed files with 30 additions and 27 deletions
|
@ -6,34 +6,11 @@ import type { Link } from "../components/Nav.astro";
|
|||
export interface Props {
|
||||
title?: string;
|
||||
description?: string;
|
||||
links?: Link[];
|
||||
}
|
||||
|
||||
const { title, description } = Astro.props;
|
||||
const links: Link[] = [
|
||||
{
|
||||
url: "https://ayos.blog",
|
||||
icon: "blog",
|
||||
},
|
||||
{
|
||||
url: "https://ayco.io/@ayo",
|
||||
icon: "mastodon",
|
||||
text: "social"
|
||||
},
|
||||
{
|
||||
url: "https://ayco.io/gh/",
|
||||
icon: "github",
|
||||
},
|
||||
// {
|
||||
// url: "https://codepen.io/ayoayco-the-styleful",
|
||||
// icon: "codepen",
|
||||
// text: "pens"
|
||||
// },
|
||||
{
|
||||
url: "https://www.npmjs.com/~aayco",
|
||||
icon: "npm",
|
||||
set: "gg"
|
||||
}
|
||||
];
|
||||
const { links = [], title, description } = Astro.props;
|
||||
|
||||
---
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
import Layout from "../layouts/Layout.astro";
|
||||
import Card from "../components/Card.astro";
|
||||
import Footer from "../components/Footer.astro";
|
||||
import type { Link } from "../components/Nav.astro";
|
||||
|
||||
const response = await fetch('https://social.ayco.io/api/v1/accounts/109547735999980313')
|
||||
let {
|
||||
|
@ -13,9 +14,34 @@ let {
|
|||
const [first_name, last_name] = display_name.split(' ')
|
||||
note = note.replace('<span class="">ayco.io/gh/', '<span class="">').replace('<span class="">ayco.io/sh/', '<span class="">')
|
||||
|
||||
const links: Link[] = [
|
||||
{
|
||||
url: "https://ayos.blog",
|
||||
icon: "blog",
|
||||
},
|
||||
{
|
||||
url: "https://ayco.io/@ayo",
|
||||
icon: "mastodon",
|
||||
text: "social"
|
||||
},
|
||||
{
|
||||
url: "https://ayco.io/gh/",
|
||||
icon: "github",
|
||||
},
|
||||
// {
|
||||
// url: "https://codepen.io/ayoayco-the-styleful",
|
||||
// icon: "codepen",
|
||||
// text: "pens"
|
||||
// },
|
||||
{
|
||||
url: "https://www.npmjs.com/~aayco",
|
||||
icon: "npm",
|
||||
set: "gg"
|
||||
}
|
||||
];
|
||||
---
|
||||
|
||||
<Layout>
|
||||
<Layout links={links}>
|
||||
<section class="highlighted-section">
|
||||
<div class="highlighted-section__content">
|
||||
<img
|
||||
|
|
Loading…
Reference in a new issue