From 0087584b65db33e7fd7f9a557e4a32664343ead8 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Shelton" Date: Fri, 7 Aug 2026 14:40:12 -0600 Subject: [PATCH] Added icons to indicate available notes types. --- src/components/Notes.astro | 19 +++++++++++++++++++ src/styles/global.css | 4 ++++ 2 files changed, 23 insertions(+) diff --git a/src/components/Notes.astro b/src/components/Notes.astro index 78c714e..887f540 100644 --- a/src/components/Notes.astro +++ b/src/components/Notes.astro @@ -7,6 +7,8 @@ import { titleCase } from '../utils/strings'; import { type CollectionEntry } from 'astro:content'; +import { Icon } from 'astro-icon/components'; + const scriptureStyles: {[index: string]:string} = { gospels: 'gospels', pentateuch: 'pentateuch', @@ -24,6 +26,16 @@ const getScriptureStyle = (cat: any): string => { } return 'gospels'; }; +const postMetaIcons: {[index :string]:{[index: string]:string}} = { + "long-form": { + "src": "justify-left", + "alt": "Long-form Notes", + }, + "abbreviated": { + "src": "list-ul", + "alt": "Abbreviated Notes", + } +}; const base = import.meta.env.BASE_URL; const { notes } = Astro.props; @@ -35,10 +47,17 @@ const { notes } = Astro.props;
+
+ +

{note.data.title} diff --git a/src/styles/global.css b/src/styles/global.css index ff968cd..958d573 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -232,6 +232,10 @@ dialog.scripture { @apply block text-xl text-gray-400 pl-4 pr-4 pt-2 text-right relative bottom-0; } +#notes-list ul.types li { + @apply inline-block bg-neutral-900 p-2; +} + article#notes-page { @apply pt-4 text-xl duration-500 transition-colors; @apply dark:text-gray-200;