File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 6
6
< meta name ="viewport " content ="width=device-width,initial-scale=1 ">
7
7
< meta name ="mobile-web-app-capable " content ="yes ">
8
8
< meta name ="apple-mobile-web-app-capable " content ="yes ">
9
- < meta property ="og:title " content ="<%= htmlWebpackPlugin.options.title %> " />
9
+ < meta property ="og:title " content ="<%= (htmlWebpackPlugin.options.seo && htmlWebpackPlugin.options.seo.title) || htmlWebpackPlugin.options.title %> " />
10
10
< % if(htmlWebpackPlugin.options.seo && 'cover' in htmlWebpackPlugin.options.seo) {%>
11
11
< meta property ="og:image " content ="<%= htmlWebpackPlugin.options.seo.cover %> " />
12
- < meta name ="twitter:image:src " content ="<%= htmlWebpackPlugin.options.seo.cover %> ">
13
12
< % } %>
14
13
< % if(htmlWebpackPlugin.options.seo && 'subtitle' in htmlWebpackPlugin.options.seo) {%>
15
14
< meta property ="og:description " content ="<%= htmlWebpackPlugin.options.seo.subtitle %> " />
16
- < meta property ="twitter:description " content ="<%= htmlWebpackPlugin.options.seo.subtitle %> " />
17
15
< meta property ="description " content ="<%= htmlWebpackPlugin.options.seo.subtitle %> " />
18
16
< % } %>
17
+ < meta name ="twitter:card " content ="<%= (htmlWebpackPlugin.options.seo && 'cover' in htmlWebpackPlugin.options.seo) ? 'summary_large_image' : 'summary'%> " />
18
+ < % if(htmlWebpackPlugin.options.seo && 'cover' in htmlWebpackPlugin.options.seo) {%>
19
+ < meta name ="twitter:image " content ="<%= htmlWebpackPlugin.options.seo.cover %> ">
20
+ < % } %>
21
+ < % if(htmlWebpackPlugin.options.seo && 'subtitle' in htmlWebpackPlugin.options.seo) {%>
22
+ < meta property ="twitter:description " content ="<%= htmlWebpackPlugin.options.seo.subtitle %> " />
23
+ < % } %>
19
24
< % preact.headEnd %>
20
25
</ head >
21
26
< body >
You can’t perform that action at this time.
0 commit comments