summaryrefslogtreecommitdiff
path: root/examples/with-mdx/src/pages/index.mdx
blob: 36cde1e95f61934635a848592fb33c5eac72e068 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import Counter from '../components/Counter.jsx';
import Title from '../components/Title.astro';
export const components = { h1: Title };

export const authors = [
	{ name: 'Jane', email: 'hi@jane.com' },
	{ name: 'John', twitter: '@john2002' },
];
export const published = new Date('2022-02-01');

# Hello world!

Written by: {new Intl.ListFormat('en').format(authors.map(d => d.name))}.

Published on: {new Intl.DateTimeFormat('en', {dateStyle: 'long'}).format(published)}.

<Counter client:idle>## This is a counter!</Counter>