Skip to content

Latest commit

 

History

History
50 lines (32 loc) · 1.47 KB

notes.md

File metadata and controls

50 lines (32 loc) · 1.47 KB

To Dos

2023-12-09: Saturday, December 09, 2023

  1. Sort blog posts by reverse date - most recent first
  2. Add site map (WCAG2.2 - 2.4.5 - Multiple ways)
  3. Add skip to site map link in header

Resources

Sorting posts

markdejong.org: I've rebuilt my site in Astro

folder where the blog pages and slug is generated

content config.ts GitHub for today's branch

Site map

If time / if I feel like it one or more of:

  • Set up function for draft = true/false
  • Tag pages
  • Cards for blog posts

2023-12-04: Monday, December 04, 2023

  • figure out why LinkNav works for desktop but not tablet breakpoint
  • figure out why Header centers on desktop (not desired) but not on tablet (desired)
  • Fix extra menu showing in mobile - again!

import { getCollection } from "astro:content"; import Layout from "../../components/Layout.astro";

const posts = (await getCollection("project")) .sort((a, b) => a.data.pubDate.valueOf() - b.data.pubDate.valueOf()) .reverse();

    {posts.map(p =>
  • {post.data.title}
  • )}