mirror of
https://github.com/mroxso/zelo-news.git
synced 2026-06-06 10:31:19 +02:00
Add comprehensive SEO optimization with dynamic meta tags and social sharing support (#23)
* Initial plan * Add SEO optimization with dynamic meta tags for all pages Co-authored-by: mroxso <24775431+mroxso@users.noreply.github.com> * Fix SEO meta tags to use useSeoMeta correctly without useEffect Co-authored-by: mroxso <24775431+mroxso@users.noreply.github.com> * Add SEO verification documentation Co-authored-by: mroxso <24775431+mroxso@users.noreply.github.com> * Add comprehensive SEO examples documentation Co-authored-by: mroxso <24775431+mroxso@users.noreply.github.com> * Refactor routing to use HomePage component and update blog post fetching limit --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: mroxso <24775431+mroxso@users.noreply.github.com> Co-authored-by: highperfocused <highperfocused@pm.me>
This commit is contained in:
@@ -26,7 +26,7 @@ function validateBlogPost(event: NostrEvent): event is BlogPost {
|
||||
/**
|
||||
* Hook to fetch blog posts filtered by a specific hashtag
|
||||
*/
|
||||
export function useBlogPostsByHashtag(hashtag: string) {
|
||||
export function useBlogPostsByHashtag(hashtag: string, limit: number = 50) {
|
||||
const { nostr } = useNostr();
|
||||
|
||||
return useQuery({
|
||||
@@ -38,7 +38,7 @@ export function useBlogPostsByHashtag(hashtag: string) {
|
||||
[{
|
||||
kinds: [30023],
|
||||
'#t': [hashtag.toLowerCase()],
|
||||
limit: 50,
|
||||
limit: limit,
|
||||
}],
|
||||
{ signal }
|
||||
);
|
||||
|
||||
@@ -31,7 +31,7 @@ export function useSearch(searchTerm: string, enabled = true) {
|
||||
{
|
||||
kinds: [30023],
|
||||
'#t': [tagValue],
|
||||
limit: 100,
|
||||
// limit: 100,
|
||||
},
|
||||
],
|
||||
{ signal }
|
||||
@@ -45,7 +45,7 @@ export function useSearch(searchTerm: string, enabled = true) {
|
||||
[
|
||||
{
|
||||
kinds: [0, 30023],
|
||||
limit: 100,
|
||||
// limit: 100,
|
||||
},
|
||||
],
|
||||
{ signal }
|
||||
|
||||
Reference in New Issue
Block a user