Home
This file
src/pages/index.mdx
This shows your index page can be Markdown. There is no index.astro
Nested lists can be hard work in HTML.
# comments can be included in mdx frontmatter
General
This site is for testing everything to do with a blog
-
Post pages with details of
- Title
- Date (and time)
- Author
- Categories
- Tags
Individual post pages will have links to next and previous in category.
-
Lists of posts
- All
- By category
- By author
- By date
- By tag
- Search for string
Post lists will have extracts of each post, with the title being a link to the full post. Lists may be divided into pages, with links to next, previous, individual pages, etc.
CSS
I’m still exploring global stylesheet vs. <style> and <style is:global> within Astro files
<ul>
I’ve added src/styles/astro-blog.css including ul {list-style-type:disc;} and included this in Layout.astro.
I never want the alternating bullet, circle square default.
Test pages
.md file with all the features I need
Test .astro file
Test .mdx file
These could be beefed up as new techniques are discovered.
Images and galleries
Single image .mdx file. Probably never used literally.
Simple gallery .mdx file with Fancybox behaviour. Hardcoded HTML.
Simple gallery .mdx file using FlexGallery component.
Git log
When sorting out the RSS feed for astro-wpress I had to make many small commits and pushes. I thought about squashing the local Git log to tidy it up, but because the Cloudflare build log matches the pushes, and is immutable, it’s best to keep all the local commits, so local → GitHub → Cloudflare remain 1:1
WordPress REST API
Early experiment en-route to astro-wpress
Can’t link to posts.
Fancybox doesn’t work in posts with galleries.
See astro-wpress.ncvp.me for thorough workout.
404
Supplied with blog starter template
Quite interesting, including a search box. Investigate.
Changes to original template
Replace BaseHead.astro with Layout.astro from astro-test. <BaseHead> seems to be mainly about SEO.