mirror of
https://github.com/flarum/core.git
synced 2025-08-16 21:34:08 +02:00
@@ -88,7 +88,7 @@ export default class TagsPage extends Page {
|
|||||||
config(...args) {
|
config(...args) {
|
||||||
super.config(...args);
|
super.config(...args);
|
||||||
|
|
||||||
app.setTitle(app.translator.trans('flarum-tags.forum.meta.tags_title'));
|
app.setTitle(app.translator.trans('flarum-tags.forum.all_tags.meta_title_text'));
|
||||||
app.setTitleCount(0);
|
app.setTitleCount(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -84,7 +84,7 @@ class Tag
|
|||||||
if ($tag->description) {
|
if ($tag->description) {
|
||||||
$document->meta['description'] = $tag->description;
|
$document->meta['description'] = $tag->description;
|
||||||
} else {
|
} else {
|
||||||
$document->meta['description'] = $this->translator->trans('flarum-tags.forum.meta.tag_description', ['{tag}' => $tag->name]);
|
$document->meta['description'] = $this->translator->trans('flarum-tags.forum.tag.meta_description_text', ['{tag}' => $tag->name]);
|
||||||
}
|
}
|
||||||
$document->content = $this->view->make('tags::frontend.content.tag', compact('apiDocument', 'page', 'tag'));
|
$document->content = $this->view->make('tags::frontend.content.tag', compact('apiDocument', 'page', 'tag'));
|
||||||
$document->payload['apiDocument'] = $apiDocument;
|
$document->payload['apiDocument'] = $apiDocument;
|
||||||
|
@@ -91,8 +91,8 @@ class Tags
|
|||||||
];
|
];
|
||||||
});
|
});
|
||||||
|
|
||||||
$document->title = $this->translator->trans('flarum-tags.forum.meta.tags_title');
|
$document->title = $this->translator->trans('flarum-tags.forum.all_tags.meta_title_text');
|
||||||
$document->meta['description'] = $this->translator->trans('flarum-tags.forum.meta.tags_description');
|
$document->meta['description'] = $this->translator->trans('flarum-tags.forum.all_tags.meta_description_text');
|
||||||
$document->content = $this->view->make('tags::frontend.content.tags', compact('primaryTags', 'secondaryTags', 'children'));
|
$document->content = $this->view->make('tags::frontend.content.tags', compact('primaryTags', 'secondaryTags', 'children'));
|
||||||
$document->canonicalUrl = $defaultRoute === '/tags' ? $this->url->to('forum')->base() : $request->getUri()->withQuery('');
|
$document->canonicalUrl = $defaultRoute === '/tags' ? $this->url->to('forum')->base() : $request->getUri()->withQuery('');
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user