Claude improvements
This commit is contained in:
parent
a86940da30
commit
df2267a968
79 changed files with 2695 additions and 1162 deletions
|
|
@ -1,16 +1,28 @@
|
|||
---
|
||||
import ArticleList from '../components/ArticleList.astro';
|
||||
import ProjectList from '../components/ProjectList.astro';
|
||||
import TagList from '../components/TagList.astro';
|
||||
import Base from '../layouts/Base.astro';
|
||||
import { getProjects, getPublishedPosts } from '../lib/site';
|
||||
import { getAllTags, getProjects, getPublishedPosts, site } from '../lib/site';
|
||||
|
||||
const posts = await getPublishedPosts();
|
||||
const latestPosts = posts.slice(0, 5);
|
||||
const projects = await getProjects();
|
||||
const selectedProjects = projects.filter((project) => project.data.selected);
|
||||
const tags = getAllTags(posts);
|
||||
|
||||
const personJsonLd = {
|
||||
'@context': 'https://schema.org',
|
||||
'@type': 'Person',
|
||||
name: site.name,
|
||||
url: site.url,
|
||||
email: `mailto:${site.email}`,
|
||||
sameAs: [site.github, site.linkedin],
|
||||
description: site.description,
|
||||
};
|
||||
---
|
||||
|
||||
<Base>
|
||||
<Base jsonLd={personJsonLd}>
|
||||
<section class="home-intro">
|
||||
<p class="eyebrow">
|
||||
Software systems, AI deployment, graphics, simulations, and tools
|
||||
|
|
@ -29,7 +41,7 @@ const selectedProjects = projects.filter((project) => project.data.selected);
|
|||
<section class="home-section" aria-labelledby="latest-articles">
|
||||
<div class="section-heading">
|
||||
<h2 id="latest-articles">Latest Articles</h2>
|
||||
<a href="/articles/">All articles</a>
|
||||
<a href="/articles/">All {posts.length} articles →</a>
|
||||
</div>
|
||||
<ArticleList posts={latestPosts} />
|
||||
</section>
|
||||
|
|
@ -37,8 +49,17 @@ const selectedProjects = projects.filter((project) => project.data.selected);
|
|||
<section class="home-section" aria-labelledby="selected-projects">
|
||||
<div class="section-heading">
|
||||
<h2 id="selected-projects">Selected Projects</h2>
|
||||
<a href="/projects/">All projects</a>
|
||||
<a href="/projects/">All projects →</a>
|
||||
</div>
|
||||
<ProjectList projects={selectedProjects} />
|
||||
</section>
|
||||
|
||||
<section class="home-section" aria-labelledby="browse-by-topic">
|
||||
<div class="section-heading">
|
||||
<h2 id="browse-by-topic">Browse by Topic</h2>
|
||||
</div>
|
||||
<div class="tag-cloud">
|
||||
<TagList tags={tags} />
|
||||
</div>
|
||||
</section>
|
||||
</Base>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue