Skip to content

Commit

Permalink
Merge pull request #184 from ecency/bugfix/180-fix-metadata-of-feed-page
Browse files Browse the repository at this point in the history
Fixed the feed page's metadata
  • Loading branch information
feruzm authored Nov 21, 2024
2 parents 2aa1963 + 760aa4f commit 4dd134e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@ export async function generateFeedMetadata(filter: string, tag: string) {
let canonical = `${defaults.base}/${filter}`;
let rss = "";

if (tag) {
title = `latest #${tag.replace("%40", "@ ")} ${filter} topics on internet`;
if (tag.startsWith("%40")) {
title = `${tag.replace("%40", "@")} ${filter} on decentralized web – Ecency`;
description = i18next.t("entry-index.description-user-feed", { u: tag });
} else if (tag) {
title = `latest #${tag} ${filter} topics on internet`;
description = i18next.t("entry-index.description-tag", { f: fC, t: tag });

url = `/${filter}/${tag}`;
Expand Down
33 changes: 0 additions & 33 deletions src/utils/get-meta-props.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export * from "./input-util";
export * from "./use-stopwatch";
export * from "./is-mobile";
export * from "./spk-estimated-balance";
export * from "./get-meta-props";
export * from "./use-nav";
export * from "./b64";
export * from "./currency-symbol";
Expand Down

0 comments on commit 4dd134e

Please sign in to comment.