Closed jamestagal closed 2 years ago
Hey @jim
I think I fixed the error from above No 1 issue. And it is building again which is great!
But I also updated the path overrides for the blog posts from types
to routes
see below but that didn't seem to work:
OLD
"types": {
"posts":"/blog/:filename"
},
NEW
"routes": {
"posts": "/blog/:filename"
},
So on this route : http://localhost:3000/blog/post-1
I get a 404 page not found
error.
Ben
Hi @jamestagal,
It looks like you're using the wrong key name in layouts/content/posts.svelte
: https://github.com/jamestagal/plenti-educenter/blob/4cdb7d4321a322be866ca9e46dcfbe396f094b44/layouts/content/posts.svelte. You're referencing published
but it should be publish
. When I make this change locally it works on my end:
Hope that helps!
oh yes...Thanks @jimafisk I have to remember to change the name in the svelte file as well as in the json.
Hi @jimafisk I am working away at this theme, following along with your tutorial videos up to - Plenti Bigspring: Part 15 (Truncate Text and Remove HTML from String but I am stuck at a couple of points.
date
in mypost.json
files might be a problem. Is it a protected word? I get the following error message.I have defined the following in the
post.json
files:Then refer to these fields in the template:
ti-calendar
and one for userti-user
that aren't included in the posts pages. How could I solve this problem? Ironically all the content and styling for the cards from Latest News section inindex.json
is exactly the same content and styling on the cards for the blog page. The only different is that there are fewer cards on the index page. So that begs the questions should I be aggregating the content from the blog page over to the index page?Ben