Tutorial: Custom Meta Tags

From Lorekeeper Wiki
Revision as of 10:01, 27 June 2020 by Mercury (talk | contribs)
Jump to navigation Jump to search

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