Skip to content

Commit

Permalink
Meta description and pageTitle added
Browse files Browse the repository at this point in the history
  • Loading branch information
justoverclockl committed Jul 28, 2021
1 parent 775f757 commit 8a1d619
Show file tree
Hide file tree
Showing 8 changed files with 7,722 additions and 866 deletions.
7 changes: 5 additions & 2 deletions extend.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* This file is part of justoverclock/flarum-ext-keywords.
*
* Copyright (c) 2021 Marco Colia.
* https://flarum.it
*
* For the full copyright and license information, please view the LICENSE.md
* file that was distributed with this source code.
Expand All @@ -14,13 +15,15 @@

use Flarum\Extend;
use Flarum\Api\Event\Serializing;

use Flarum\Frontend\Document;

return [
(new Extend\Frontend('forum'))
->js(__DIR__.'/js/dist/forum.js')
->css(__DIR__.'/resources/less/forum.less')
->route('/glossary', 'justoverclock/flarum-ext-keywords'),
->route('/glossary', 'justoverclock/flarum-ext-keywords', function (Document $document) {
$MetaDesc = resolve('translator')->trans('flarum-ext-keywords.forum.tagline');
$document->head[0] = '<meta name="description" content="' . $MetaDesc .'" />';}),
(new Extend\Frontend('admin'))
->js(__DIR__.'/js/dist/admin.js')
->css(__DIR__.'/resources/less/admin.less'),
Expand Down
2 changes: 1 addition & 1 deletion js/dist/admin.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/dist/admin.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/dist/forum.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8a1d619

Please sign in to comment.