公开页补齐自引用 Canonical 与按类型的结构化数据,图片补上说明文字。
后台设置和内容编辑改成可导航布局;部署用访客 origin 生成 Canonical,避免落到容器地址。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -18,8 +18,10 @@ export default function Pagination({ total, page, size, basePath, query = {}, on
|
||||
|
||||
const buildHref = (p: number) => {
|
||||
const params = new URLSearchParams(query);
|
||||
params.set("page", String(p));
|
||||
return `${basePath}?${params.toString()}`;
|
||||
if (p > 1) params.set("page", String(p));
|
||||
else params.delete("page");
|
||||
const qs = params.toString();
|
||||
return qs ? `${basePath}?${qs}` : basePath;
|
||||
};
|
||||
|
||||
const handleClick = (p: number, e: React.MouseEvent) => {
|
||||
|
||||
Reference in New Issue
Block a user