Comments (1)
Hey, check the file ListItem.astro, if you add console.log to log the post you can see that the author prop is there but the author is undefined.
const { post } = Astro.props;
console.log(post);
Add an author prop to the frontmatter of any of the posts and you will see it in the logs.
publishDate: 2023-08-09T00:00:00Z
title: Useful tools and resources to create a professional website
...
author: Author Name
...
tags:
- front-end
- tools
- resources
you can render the author adding something like this to the html in the ListItem.astro file
<div>Author: {post.author}</div>
from astrowind.
Related Issues (20)
- Zoom Level/Font Size is different for Edge Chromium compared to Chrome and Firefox HOT 6
- sharp error HOT 6
- Cloudflare pages builds are failing: munmap_chunk(): invalid pointer HOT 12
- How to create a new content collection similar to blogs? HOT 2
- Deploy waring HOT 1
- Is it possible to change the icon library? Astro-icon isn't importing icons from other icon sets HOT 1
- Error: Unable to locate the "tabler" icon set! HOT 1
- How are you using i18n HOT 1
- I had a problem with installing @tabler-icons-react and flat-color-icons
- Strange spacing CSS bug in blog excerpts HOT 2
- why still in beta
- missing "use this template" button
- output: 'static' to output: 'server' HOT 1
- How should i add Schema.org into astrowind
- Matomo Analytics? HOT 1
- Hover tooltips? HOT 1
- npm run build fails due to getImage() return type GetImageResult HOT 4
- Make Feature2 items cards clickable like blog posts grid items? HOT 1
- not able to add facebook chat plugin HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from astrowind.