Difference between revisions of "Tutorial: Custom Meta Tags"
Jump to navigation
Jump to search
(Created page with "== Adding Custom Info to Meta Tags == Custom information within meta tags is defined within Lorekeeper via "sections". The sections called for by meta tags are as follows: *...") |
Tag: 2017 source edit |
||
Line 11: | Line 11: | ||
For instance, the section present within each of the character-relevant blade files is as follows: | For instance, the section present within each of the character-relevant blade files is as follows: | ||
+ | <pre>@section('meta-img') {{ $character->image->thumbnailUrl }} @endsection</pre> |
Revision as of 10:01, 27 June 2020
Adding Custom Info to Meta Tags
Custom information within meta tags is defined within Lorekeeper via "sections".
The sections called for by meta tags are as follows:
- title
- meta-desc
- meta-img
So, in order to add a custom value to the meta tag for a specific blade, you would add the relevant section to it and, contained within that section, the relevant information.
For instance, the section present within each of the character-relevant blade files is as follows:
@section('meta-img') {{ $character->image->thumbnailUrl }} @endsection