--- /** * Split button for content pages: "Copy page" primary action, * with a chevron dropdown for secondary actions. * * The copy side fetches the page's `.md` companion (served by * pages/[...slug].md.ts) and writes it to the clipboard. * The dropdown uses the native Popover API for toggle + light-dismiss. */ import type {ContentFile, ContentFolder} from '../lib/content'; interface Props { file: ContentFile | ContentFolder; } const {file} = Astro.props; const mdUrl = `${file.url}.md`; const popoverId = `page-actions-${file.slug}`; const pageItems = [ { href: mdUrl, icon: 'icon-[mdi--language-markdown]', label: 'View as Markdown', description: 'Open this page as Markdown', }, ]; const siteItems = [ { href: '/llms.txt', icon: 'icon-[mdi--file-document]', label: 'llms.txt', description: 'htmx overview for LLMs', }, { href: '/llms-full.txt', icon: 'icon-[mdi--file-document]', label: 'llms-full.txt', description: 'Complete htmx docs for LLMs', }, ]; ---
{pageItems.map(item => (
{item.label} {item.description}
))}
For LLMs {siteItems.map(item => (
{item.label} {item.description}
))}