Skip to content

Commit

Permalink
Fixed the feed page's metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
dkildar committed Nov 21, 2024
1 parent 5e5be46 commit 760aa4f
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 760aa4f

Please sign in to comment.