diff --git a/src/components/NewsSingle.astro b/src/components/NewsSingle.astro index b3f4ffe..69d93b3 100644 --- a/src/components/NewsSingle.astro +++ b/src/components/NewsSingle.astro @@ -76,7 +76,7 @@ const { post, pageInfo } = Astro.props;
{post.tags.nodes.map((tag) => ( diff --git a/src/lib/api/posts.ts b/src/lib/api/posts.ts index 6fff56e..a36334c 100644 --- a/src/lib/api/posts.ts +++ b/src/lib/api/posts.ts @@ -254,7 +254,7 @@ export async function getPostsByTag(slug, first = 14, after = null) { async () => { const query = ` query GetPostsByTag($first: Int!, $after: String, $slug: ID!) { - tag(id: $slug, idType: NAME) { + tag(id: $slug, idType: SLUG) { id databaseId name diff --git a/src/pages/tag/[slug]/index.astro b/src/pages/tag/[slug]/index.astro index e6ac76d..8672644 100644 --- a/src/pages/tag/[slug]/index.astro +++ b/src/pages/tag/[slug]/index.astro @@ -25,7 +25,7 @@ const endCursor = pageInfo?.endCursor || null; title={`Записи по тегу: ${tagName}`} description={`Информационное агентство Деловой журнал Профиль - записи по тегу ${tagName}`} > -

#{decodedSlug}

+

{tagName}