Skip to content

Commit 2bd18a8

Browse files
Add new SEO-related snippets including meta tags, structured data, and viewport settings to enhance the snippet library.
1 parent 4c42416 commit 2bd18a8

File tree

1 file changed

+176
-0
lines changed

1 file changed

+176
-0
lines changed

snippets/categories/seo.json

Lines changed: 176 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,176 @@
1+
{
2+
"seo_meta_tags": {
3+
"prefix": "aseometa",
4+
"body": [
5+
"<meta name=\"description\" content=\"${1:Page description}\">",
6+
"<meta name=\"keywords\" content=\"${2:keywords,separated,by,commas}\">",
7+
"<meta name=\"author\" content=\"${3:Author name}\">",
8+
"<meta property=\"og:title\" content=\"${4:Title}\">",
9+
"<meta property=\"og:description\" content=\"${1:Page description}\">",
10+
"<meta property=\"og:image\" content=\"${5:image-url}\">",
11+
"<meta property=\"og:url\" content=\"${6:page-url}\">",
12+
"<meta name=\"twitter:card\" content=\"summary_large_image\">"
13+
],
14+
"description": "Common SEO meta tags",
15+
"scope": "text.html"
16+
},
17+
"seo_viewport": {
18+
"prefix": "aseovp",
19+
"body": "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">",
20+
"description": "Responsive viewport meta tag",
21+
"scope": "text.html"
22+
},
23+
"seo_charset": {
24+
"prefix": "aseocharset",
25+
"body": "<meta charset=\"UTF-8\">",
26+
"description": "UTF-8 charset meta tag",
27+
"scope": "text.html"
28+
},
29+
"seo_canonical": {
30+
"prefix": "aseocanonical",
31+
"body": "<link rel=\"canonical\" href=\"${1:https://example.com/page}\">",
32+
"description": "Canonical URL link tag",
33+
"scope": "text.html"
34+
},
35+
"seo_robots": {
36+
"prefix": "aseorobots",
37+
"body": "<meta name=\"robots\" content=\"${1:index,follow}\">",
38+
"description": "Robots meta tag",
39+
"scope": "text.html"
40+
},
41+
"seo_social": {
42+
"prefix": "aseosocial",
43+
"body": [
44+
"<meta property=\"og:type\" content=\"${1:website}\">",
45+
"<meta property=\"og:site_name\" content=\"${2:Site Name}\">",
46+
"<meta property=\"og:locale\" content=\"${3:en_US}\">",
47+
"<meta name=\"twitter:site\" content=\"@${4:username}\">",
48+
"<meta name=\"twitter:creator\" content=\"@${4:username}\">"
49+
],
50+
"description": "Social media meta tags",
51+
"scope": "text.html"
52+
},
53+
"seo_alternate": {
54+
"prefix": "aseoalternate",
55+
"body": "<link rel=\"alternate\" hreflang=\"${1:en}\" href=\"${2:https://example.com/page}\">",
56+
"description": "Alternate language link tag",
57+
"scope": "text.html"
58+
},
59+
"seo_favicon": {
60+
"prefix": "aseofavicon",
61+
"body": [
62+
"<link rel=\"icon\" type=\"image/x-icon\" href=\"${1:/favicon.ico}\">",
63+
"<link rel=\"apple-touch-icon\" sizes=\"${2:180x180}\" href=\"${3:/apple-touch-icon.png}\">",
64+
"<link rel=\"manifest\" href=\"${4:/site.webmanifest}\">"
65+
],
66+
"description": "Favicon and app icons",
67+
"scope": "text.html"
68+
},
69+
"seo_jsonld": {
70+
"prefix": "aseojsonld",
71+
"body": [
72+
"<script type=\"application/ld+json\">",
73+
"{",
74+
"\t\"@context\": \"https://schema.org\",",
75+
"\t\"@type\": \"${1:WebPage}\",",
76+
"\t\"name\": \"${2:Page Name}\",",
77+
"\t\"description\": \"${3:Page description}\",",
78+
"\t\"url\": \"${4:https://example.com/page}\"",
79+
"}",
80+
"</script>"
81+
],
82+
"description": "JSON-LD structured data",
83+
"scope": "text.html"
84+
},
85+
"seo_article": {
86+
"prefix": "aseoarticle",
87+
"body": [
88+
"<script type=\"application/ld+json\">",
89+
"{",
90+
"\t\"@context\": \"https://schema.org\",",
91+
"\t\"@type\": \"Article\",",
92+
"\t\"headline\": \"${1:Article Title}\",",
93+
"\t\"author\": {",
94+
"\t\t\"@type\": \"Person\",",
95+
"\t\t\"name\": \"${2:Author Name}\"",
96+
"\t},",
97+
"\t\"datePublished\": \"${3:2024-01-01}\",",
98+
"\t\"dateModified\": \"${4:2024-01-01}\",",
99+
"\t\"description\": \"${5:Article description}\"",
100+
"}",
101+
"</script>"
102+
],
103+
"description": "Article structured data",
104+
"scope": "text.html"
105+
},
106+
"seo_breadcrumb": {
107+
"prefix": "aseobreadcrumb",
108+
"body": [
109+
"<script type=\"application/ld+json\">",
110+
"{",
111+
"\t\"@context\": \"https://schema.org\",",
112+
"\t\"@type\": \"BreadcrumbList\",",
113+
"\t\"itemListElement\": [{",
114+
"\t\t\"@type\": \"ListItem\",",
115+
"\t\t\"position\": 1,",
116+
"\t\t\"name\": \"${1:Home}\",",
117+
"\t\t\"item\": \"${2:https://example.com}\"",
118+
"\t}, {",
119+
"\t\t\"@type\": \"ListItem\",",
120+
"\t\t\"position\": 2,",
121+
"\t\t\"name\": \"${3:Current Page}\",",
122+
"\t\t\"item\": \"${4:https://example.com/page}\"",
123+
"\t}]",
124+
"}",
125+
"</script>"
126+
],
127+
"description": "Breadcrumb structured data",
128+
"scope": "text.html"
129+
},
130+
"seo_organization": {
131+
"prefix": "aseoorg",
132+
"body": [
133+
"<script type=\"application/ld+json\">",
134+
"{",
135+
"\t\"@context\": \"https://schema.org\",",
136+
"\t\"@type\": \"Organization\",",
137+
"\t\"name\": \"${1:Organization Name}\",",
138+
"\t\"url\": \"${2:https://example.com}\",",
139+
"\t\"logo\": \"${3:https://example.com/logo.png}\",",
140+
"\t\"contactPoint\": {",
141+
"\t\t\"@type\": \"ContactPoint\",",
142+
"\t\t\"telephone\": \"${4:+1-123-456-7890}\",",
143+
"\t\t\"contactType\": \"${5:customer service}\"",
144+
"\t}",
145+
"}",
146+
"</script>"
147+
],
148+
"description": "Organization structured data",
149+
"scope": "text.html"
150+
},
151+
"seo_product": {
152+
"prefix": "aseoproduct",
153+
"body": [
154+
"<script type=\"application/ld+json\">",
155+
"{",
156+
"\t\"@context\": \"https://schema.org\",",
157+
"\t\"@type\": \"Product\",",
158+
"\t\"name\": \"${1:Product Name}\",",
159+
"\t\"description\": \"${2:Product description}\",",
160+
"\t\"brand\": {",
161+
"\t\t\"@type\": \"Brand\",",
162+
"\t\t\"name\": \"${3:Brand Name}\"",
163+
"\t},",
164+
"\t\"offers\": {",
165+
"\t\t\"@type\": \"Offer\",",
166+
"\t\t\"price\": \"${4:99.99}\",",
167+
"\t\t\"priceCurrency\": \"${5:USD}\",",
168+
"\t\t\"availability\": \"${6:https://schema.org/InStock}\"",
169+
"\t}",
170+
"}",
171+
"</script>"
172+
],
173+
"description": "Product structured data",
174+
"scope": "text.html"
175+
}
176+
}

0 commit comments

Comments
 (0)