File tree 2 files changed +14
-11
lines changed
2 files changed +14
-11
lines changed Original file line number Diff line number Diff line change 71
71
|--------------------------------------------------------------------------
72
72
|
73
73
| While you can add any number of meta tags in the meta.blade.php component,
74
- | this config setting allows you to easily customize some common metadata
75
- | tags so increase your SEO score. You can keep them to their defaults
76
- | or you can set a value to false or null to disable it completely.
74
+ | these settings allow you to easily add tags for the meta component.
77
75
|
78
- | Note that some tags may be overwritten on certain pages, for instance post pages.
79
- |
80
- | Tip: See https://www.w3schools.com/tags/att_meta_name.asp
81
- | for a list of tags and what they are for.
76
+ | The `meta` array is for standard meta tags. See the examples below.
77
+ | The `og` array is for Open Graph properties. Do not include the `og:` prefix.
82
78
|
83
79
*/
84
80
85
81
'meta ' => [
86
82
// 'author' => 'Mr. Hyde',
83
+ // 'twitter:creator' => '@hyde_php',
87
84
// 'description' => 'My Hyde Blog',
88
85
// 'keywords' => 'Static Sites, Blogs, Documentation',
89
86
'generator ' => 'HydePHP ' .Hyde \Framework \Hyde::version (),
90
87
],
91
88
89
+ 'ogProperties ' => [
90
+ 'site_name ' => $ siteName ,
91
+ ],
92
+
92
93
/*
93
94
|--------------------------------------------------------------------------
94
95
| Features
Original file line number Diff line number Diff line change 1
- {{-- Config Defined Tags --}}
1
+ {{-- Config Defined Meta Tags --}}
2
2
@foreach (config (' hyde.meta' , []) as $name => $content )
3
3
<meta name =" {{ $name } }" content =" {{ $content } }" >
4
4
@endforeach
5
5
6
- {{-- Add any extra tags to include in the <head> section --}}
7
- <meta property =" og:site_name" content =" {{ config (' hyde.name' , ' HydePHP' ) } }" >
6
+ @foreach (config (' hyde.ogProperties' , []) as $property => $content )
7
+ <meta property =" og:{{ $property } }" content =" {{ $content } }" >
8
+ @endforeach
8
9
9
- {{-- Add any extra meta tags to include after the others --}}
10
+ {{-- Add any extra tags to include in the <head> section --}}
10
11
@stack (' meta' )
12
+
You can’t perform that action at this time.
0 commit comments