Hi James, sorry for asking a noob question here. Can I ask if there's a way for me to get the url of the page I am currently in the .astro code? (e.g. if I console log the variable, the url of the page that the user is currently on can be logged)?
I did see your original comment but RUclips removed it… To answer your questions. Yes it’s just like pagination in theory but you’ll need to read up a bit here docs.astro.build/en/core-concepts/routing/#pagination
The only functionality missing from this is comment section. The rest is indeed there, no one said it was apples to apples but getting rid of 100s of kb of JavaScript was.
The search again wouldn’t ship JavaScript unless the user had loaded the page / how I decide to load the js. Instead of bundled regardless of how it is implemented. The only reason I had search was because I didn’t implement pagination. But again the whole thing isn’t an apples to apples comparison.
Just tested, and somehow reminds Laravel :D
Really simple, and actually I like it :)
Good profiling practices. Thank you James.
Bro your blog is amazingly fast will you share the code of your blog with Astro? is there an available github repo?
Awesome, can you build a todo app with astro and data is stored in supabase, when we refresh page the newly added data is updated in todo list ?
I will look into getting it done in first couple months of year
Are you sharing the code of your blog with Astro? is there any repository?
It is on GitHub github.com/perkinsjr/james-perkins-astro
Hi James, sorry for asking a noob question here. Can I ask if there's a way for me to get the url of the page I am currently in the .astro code? (e.g. if I console log the variable, the url of the page that the user is currently on can be logged)?
Yeah you can use url which is an Astro prop
docs.astro.build/en/reference/api-reference/#astrourl
@@james-perkins Alright, I'll check it out. Thank you!
Sorry the comments doesn't seem to be showing up
I did see your original comment but RUclips removed it…
To answer your questions. Yes it’s just like pagination in theory but you’ll need to read up a bit here
docs.astro.build/en/core-concepts/routing/#pagination
@@james-perkins ok thank you James. Sorry for the spam. I'll look into it!
Dark mode, please....
… what?
thats not apples to apples tho, you dont have the same functionality on your new site
The only functionality missing from this is comment section. The rest is indeed there, no one said it was apples to apples but getting rid of 100s of kb of JavaScript was.
@@james-perkins I was talking about the search/autocomplete.
The search again wouldn’t ship JavaScript unless the user had loaded the page / how I decide to load the js. Instead of bundled regardless of how it is implemented.
The only reason I had search was because I didn’t implement pagination.
But again the whole thing isn’t an apples to apples comparison.
What a ridiculous title. 😂
Worked though. Thanks for clicking 😂
@@james-perkins It did, disliked and blocked, UR welcome 😂
Oh no. Please come back. I am sad.