|
7 | 7 | {{ /if }} |
8 | 8 |
|
9 | 9 | {{ if robots }} |
10 | | - <meta name="robots" content="{{ robots | raw | list | striptags | entities }}" /> |
| 10 | + <meta name="robots" content="{{ robots | raw | list | striptags | entities | trim }}" /> |
11 | 11 | {{ /if }} |
12 | 12 |
|
13 | 13 | <meta property="og:type" content="website" /> |
|
20 | 20 | <meta property="og:description" content="{{ description | striptags | entities | trim }}" /> |
21 | 21 | {{ /if }} |
22 | 22 |
|
23 | | -<meta property="og:url" content="{{ canonical_url }}" /> |
| 23 | +<meta property="og:url" content="{{ canonical_url | striptags | entities | trim }}" /> |
24 | 24 |
|
25 | 25 | {{ if site_name }} |
26 | 26 | <meta property="og:site_name" content="{{ site_name | striptags | entities | trim }}" /> |
|
62 | 62 | <meta property="og:image:width" content="{{ width }}" /> |
63 | 63 | <meta property="og:image:height" content="{{ height }}" /> |
64 | 64 | {{ /if }} |
65 | | - <meta property="og:image:alt" content="{{ alt | striptags | entities }}" /> |
| 65 | + <meta property="og:image:alt" content="{{ alt | striptags | entities | trim }}" /> |
66 | 66 |
|
67 | 67 | {{ if is_twitter_glide_enabled }} |
68 | 68 | {{ glide:generate :src="image" preset="seo_pro_twitter" absolute="true" }} |
|
71 | 71 | {{ else }} |
72 | 72 | <meta name="twitter:image" content="{{ permalink }}" /> |
73 | 73 | {{ /if }} |
74 | | - <meta name="twitter:image:alt" content="{{ alt | striptags | entities }}" /> |
| 74 | + <meta name="twitter:image:alt" content="{{ alt | striptags | entities | trim }}" /> |
75 | 75 |
|
76 | 76 | {{ /image }} |
77 | 77 | {{ /if }} |
78 | 78 |
|
79 | | -<link href="{{ home_url }}" rel="home" /> |
80 | | -<link href="{{ canonical_url }}" rel="canonical" /> |
| 79 | +<link href="{{ home_url | striptags | entities | trim }}" rel="home" /> |
| 80 | +<link href="{{ canonical_url | striptags | entities | trim }}" rel="canonical" /> |
81 | 81 |
|
82 | 82 | {{ if prev_url }} |
83 | | - <link href="{{ prev_url }}" rel="prev" /> |
| 83 | + <link href="{{ prev_url | striptags | entities | trim }}" rel="prev" /> |
84 | 84 | {{ /if }} |
85 | 85 |
|
86 | 86 | {{ if next_url }} |
87 | | - <link href="{{ next_url }}" rel="next" /> |
| 87 | + <link href="{{ next_url | striptags | entities | trim }}" rel="next" /> |
88 | 88 | {{ /if }} |
89 | 89 |
|
90 | 90 | {{ if alternate_locales }} |
91 | | - <link rel="alternate" href="{{ canonical_url }}" hreflang="{{ current_hreflang }}" /> |
| 91 | + <link rel="alternate" href="{{ canonical_url | striptags | entities | trim }}" hreflang="{{ current_hreflang }}" /> |
92 | 92 | {{ alternate_locales }} |
93 | | - <link rel="alternate" href="{{ url }}" hreflang="{{ hreflang }}" /> |
| 93 | + <link rel="alternate" href="{{ url | striptags | entities | trim }}" hreflang="{{ hreflang }}" /> |
94 | 94 | {{ /alternate_locales }} |
95 | 95 | {{ /if }} |
96 | 96 |
|
|
99 | 99 | {{ /if }} |
100 | 100 |
|
101 | 101 | {{ if google_verification }} |
102 | | - <meta name="google-site-verification" content="{{ google_verification | striptags | entities }}" /> |
| 102 | + <meta name="google-site-verification" content="{{ google_verification | striptags | entities | trim }}" /> |
103 | 103 | {{ /if }} |
104 | 104 |
|
105 | 105 | {{ if bing_verification }} |
106 | | - <meta name="msvalidate.01" content="{{ bing_verification | striptags | entities }}" /> |
| 106 | + <meta name="msvalidate.01" content="{{ bing_verification | striptags | entities | trim }}" /> |
107 | 107 | {{ /if }} |
0 commit comments