diff --git a/readme.md b/readme.md index 58e084d..c4a69d4 100644 --- a/readme.md +++ b/readme.md @@ -25,7 +25,7 @@ git clone https://github.com/marcobiedermann/sublime-head-snippets.git ## Usage -Start typing `head-` in HTML or PHP files and the autocomplete windows opens. +Start typing `head-` in HTML [Jade](http://jade-lang.com/), or PHP files and the autocomplete windows opens. | Head Tags | Snippet code | |---|---| diff --git a/snippets/head-360-browser.sublime-snippet b/snippets/html/head-360-browser.sublime-snippet similarity index 100% rename from snippets/head-360-browser.sublime-snippet rename to snippets/html/head-360-browser.sublime-snippet diff --git a/snippets/head-app-links.sublime-snippet b/snippets/html/head-app-links.sublime-snippet similarity index 100% rename from snippets/head-app-links.sublime-snippet rename to snippets/html/head-app-links.sublime-snippet diff --git a/snippets/head-apple-ios.sublime-snippet b/snippets/html/head-apple-ios.sublime-snippet similarity index 100% rename from snippets/head-apple-ios.sublime-snippet rename to snippets/html/head-apple-ios.sublime-snippet diff --git a/snippets/head-apple-safari.sublime-snippet b/snippets/html/head-apple-safari.sublime-snippet similarity index 100% rename from snippets/head-apple-safari.sublime-snippet rename to snippets/html/head-apple-safari.sublime-snippet diff --git a/snippets/head-elements.sublime-snippet b/snippets/html/head-elements.sublime-snippet similarity index 100% rename from snippets/head-elements.sublime-snippet rename to snippets/html/head-elements.sublime-snippet diff --git a/snippets/head-facebook-instant-articles.sublime-snippet b/snippets/html/head-facebook-instant-articles.sublime-snippet similarity index 100% rename from snippets/head-facebook-instant-articles.sublime-snippet rename to snippets/html/head-facebook-instant-articles.sublime-snippet diff --git a/snippets/head-facebook-open-graph.sublime-snippet b/snippets/html/head-facebook-open-graph.sublime-snippet similarity index 100% rename from snippets/head-facebook-open-graph.sublime-snippet rename to snippets/html/head-facebook-open-graph.sublime-snippet diff --git a/snippets/head-favicons.sublime-snippet b/snippets/html/head-favicons.sublime-snippet similarity index 100% rename from snippets/head-favicons.sublime-snippet rename to snippets/html/head-favicons.sublime-snippet diff --git a/snippets/head-google-android.sublime-snippet b/snippets/html/head-google-android.sublime-snippet similarity index 100% rename from snippets/head-google-android.sublime-snippet rename to snippets/html/head-google-android.sublime-snippet diff --git a/snippets/head-google-chrome.sublime-snippet b/snippets/html/head-google-chrome.sublime-snippet similarity index 100% rename from snippets/head-google-chrome.sublime-snippet rename to snippets/html/head-google-chrome.sublime-snippet diff --git a/snippets/head-google-plus-schema.sublime-snippet b/snippets/html/head-google-plus-schema.sublime-snippet similarity index 100% rename from snippets/head-google-plus-schema.sublime-snippet rename to snippets/html/head-google-plus-schema.sublime-snippet diff --git a/snippets/head-internet-explorer.sublime-snippet b/snippets/html/head-internet-explorer.sublime-snippet similarity index 100% rename from snippets/head-internet-explorer.sublime-snippet rename to snippets/html/head-internet-explorer.sublime-snippet diff --git a/snippets/head-link.sublime-snippet b/snippets/html/head-link.sublime-snippet similarity index 100% rename from snippets/head-link.sublime-snippet rename to snippets/html/head-link.sublime-snippet diff --git a/snippets/head-meta.sublime-snippet b/snippets/html/head-meta.sublime-snippet similarity index 100% rename from snippets/head-meta.sublime-snippet rename to snippets/html/head-meta.sublime-snippet diff --git a/snippets/head-minimum.sublime-snippet b/snippets/html/head-minimum.sublime-snippet similarity index 100% rename from snippets/head-minimum.sublime-snippet rename to snippets/html/head-minimum.sublime-snippet diff --git a/snippets/head-oembed.sublime-snippet b/snippets/html/head-oembed.sublime-snippet similarity index 100% rename from snippets/head-oembed.sublime-snippet rename to snippets/html/head-oembed.sublime-snippet diff --git a/snippets/head-qq-mobile-browser.sublime-snippet b/snippets/html/head-qq-mobile-browser.sublime-snippet similarity index 100% rename from snippets/head-qq-mobile-browser.sublime-snippet rename to snippets/html/head-qq-mobile-browser.sublime-snippet diff --git a/snippets/head-twitter.sublime-snippet b/snippets/html/head-twitter.sublime-snippet similarity index 100% rename from snippets/head-twitter.sublime-snippet rename to snippets/html/head-twitter.sublime-snippet diff --git a/snippets/head-uc-mobile-browser.sublime-snippet b/snippets/html/head-uc-mobile-browser.sublime-snippet similarity index 100% rename from snippets/head-uc-mobile-browser.sublime-snippet rename to snippets/html/head-uc-mobile-browser.sublime-snippet diff --git a/snippets/jade/head-360-browser.sublime-snippet b/snippets/jade/head-360-browser.sublime-snippet new file mode 100644 index 0000000..2900efa --- /dev/null +++ b/snippets/jade/head-360-browser.sublime-snippet @@ -0,0 +1,11 @@ + + +meta(name='renderer', content='${1:webkit|ie-comp|ie-stand}') +]]> + + head-360 + HEAD 360 Browser + + source.jade + diff --git a/snippets/jade/head-app-links.sublime-snippet b/snippets/jade/head-app-links.sublime-snippet new file mode 100644 index 0000000..b181332 --- /dev/null +++ b/snippets/jade/head-app-links.sublime-snippet @@ -0,0 +1,20 @@ + + +meta(property='al:ios:url', content='${1:applinks://docs}') +meta(property='al:ios:app_store_id', content='${2:12345}') +meta(property='al:ios:app_name', content='${3:App Links}') + +meta(property='al:android:url', content='${4:applinks://docs}') +meta(property='al:android:app_name', content='${3:App Links}') +meta(property='al:android:package', content='${5:org.applinks}') + +meta(property='al:web:url', content='${6:http://applinks.org/documentation}') + +]]> + + head-applinks + HEAD App Links + + source.jade + diff --git a/snippets/jade/head-apple-ios.sublime-snippet b/snippets/jade/head-apple-ios.sublime-snippet new file mode 100644 index 0000000..f93bb87 --- /dev/null +++ b/snippets/jade/head-apple-ios.sublime-snippet @@ -0,0 +1,30 @@ + + +meta(name='apple-itunes-app', content='${1:app-id=APP_ID,affiliate-data=AFFILIATE_ID,app-argument=SOME_TEXT}') + + +meta(name='format-detection', content='${2:telephone=no}') + + +meta(name='apple-mobile-web-app-capable', content='${3:yes}') +meta(name='apple-mobile-web-app-status-bar-style', content='${4:black}') +meta(name='apple-mobile-web-app-title', content='${5:App Title}') + + +link(rel='apple-touch-icon', href='${6:path/to/apple-touch-icon.png}') +link(rel='apple-touch-icon-precomposed', href='${7:path/to/apple-touch-icon-precomposed.png}') + + + + +link(rel='apple-touch-startup-image', href='${8:path/to/startup.png}') + + +]]> + + head-ios + HEAD Apple iOS + + source.jade + diff --git a/snippets/jade/head-apple-safari.sublime-snippet b/snippets/jade/head-apple-safari.sublime-snippet new file mode 100644 index 0000000..04c2f78 --- /dev/null +++ b/snippets/jade/head-apple-safari.sublime-snippet @@ -0,0 +1,11 @@ + + +link(rel='mask-icon', href='${1:path/to/icon.svg}' color='${2:red}') +]]> + + head-safari + HEAD Apple Safari + + source.jade + diff --git a/snippets/jade/head-elements.sublime-snippet b/snippets/jade/head-elements.sublime-snippet new file mode 100644 index 0000000..b26a7c5 --- /dev/null +++ b/snippets/jade/head-elements.sublime-snippet @@ -0,0 +1,25 @@ + + +title ${1:Page Title} + + +base(href='${2:https://example.com/page.html}') + + +link(rel='stylesheet', href='${3:styles.css}') + + + + + +script(src='${5:script.js}') +]]> + + head-elements + HEAD Elements + + source.jade + diff --git a/snippets/jade/head-facebook-instant-articles.sublime-snippet b/snippets/jade/head-facebook-instant-articles.sublime-snippet new file mode 100644 index 0000000..1f94397 --- /dev/null +++ b/snippets/jade/head-facebook-instant-articles.sublime-snippet @@ -0,0 +1,17 @@ + + +link(rel='canonical', href='${1:http://example.com/article.html}') + + +meta(property='fb:article_style', content='${2:myarticlestyle}') +]]> + + head-fbia + HEAD Facebook / Instant Articles + + source.jade + diff --git a/snippets/jade/head-facebook-open-graph.sublime-snippet b/snippets/jade/head-facebook-open-graph.sublime-snippet new file mode 100644 index 0000000..0c54b4c --- /dev/null +++ b/snippets/jade/head-facebook-open-graph.sublime-snippet @@ -0,0 +1,20 @@ + + + +]]> + + head-fbog + HEAD Facebook / Open Graph + + source.jade + diff --git a/snippets/jade/head-favicons.sublime-snippet b/snippets/jade/head-favicons.sublime-snippet new file mode 100644 index 0000000..5cea8ab --- /dev/null +++ b/snippets/jade/head-favicons.sublime-snippet @@ -0,0 +1,19 @@ + + + + + +link(rel='icon', href='${1:path/to/favicon-16.png}', sizes='16x16', type='image/png') +link(rel='icon', href='${2:path/to/favicon-32.png}', sizes='32x32', type='image/png') +link(rel='icon', href='${3:path/to/favicon-48.png}', sizes='48x48', type='image/png') +link(rel='icon', href='${4:path/to/favicon-62.png}', sizes='62x62', type='image/png') +link(rel='icon', href='${5:path/to/favicon-192.png}', sizes='192x192', type='image/png') + +]]> + + head-favicon + HEAD Favicon + + source.jade + diff --git a/snippets/jade/head-google-android.sublime-snippet b/snippets/jade/head-google-android.sublime-snippet new file mode 100644 index 0000000..4178a5e --- /dev/null +++ b/snippets/jade/head-google-android.sublime-snippet @@ -0,0 +1,13 @@ + + +meta(name='mobile-web-app-capable', content='${2:yes}') + +]]> + + head-android + HEAD Google Android + + source.jade + diff --git a/snippets/jade/head-google-chrome.sublime-snippet b/snippets/jade/head-google-chrome.sublime-snippet new file mode 100644 index 0000000..27cd770 --- /dev/null +++ b/snippets/jade/head-google-chrome.sublime-snippet @@ -0,0 +1,13 @@ + + +meta(name='google' value='${2:notranslate}') +]]> + + head-chrome + HEAD Google Chrome + + source.jade + diff --git a/snippets/jade/head-google-plus-schema.sublime-snippet b/snippets/jade/head-google-plus-schema.sublime-snippet new file mode 100644 index 0000000..a533be7 --- /dev/null +++ b/snippets/jade/head-google-plus-schema.sublime-snippet @@ -0,0 +1,13 @@ + + + + head-gplus + HEAD Google+ / Schema.org + + source.jade + diff --git a/snippets/jade/head-internet-explorer.sublime-snippet b/snippets/jade/head-internet-explorer.sublime-snippet new file mode 100644 index 0000000..72dfd20 --- /dev/null +++ b/snippets/jade/head-internet-explorer.sublime-snippet @@ -0,0 +1,37 @@ + + +meta(name='msapplication-tap-highlight', content='${3:no}') + + +meta(name='application-name', content='${4:Contoso Pinned Site Caption}') +meta(name='msapplication-tooltip', content='${5:Example Tooltip Text}') +meta(name='msapplication-starturl', content='${6:/}') + +meta(name='msapplication-config', content='${7:http://example.com/browserconfig.xml}') + +meta(name='msapplication-allowDomainApiCalls', content='${8:true}') +meta(name='msapplication-allowDomainMetaTags', content='${9:true}') +meta(name='msapplication-badge', content='${10:frequency=30; polling-uri=http://example.com/id45453245/polling.xml}') +meta(name='msapplication-navbutton-color', content='${11:#FF3300}') +meta(name='msapplication-notification', content='${12:frequency=60;polling-uri=http://example.com/livetile}') +meta(name='msapplication-square150x150logo', content='${13:path/to/logo.png}') +meta(name='msapplication-square310x310logo', content='${14:path/to/largelogo.png}') +meta(name='msapplication-square70x70logo', content='${15:path/to/tinylogo.png}') +meta(name='msapplication-wide310x150logo', content='${16:path/to/widelogo.png}') +meta(name='msapplication-task', content='${17:name=Check Order Status;action-uri=./orderStatus.aspx?src=IE9;icon-uri=./favicon.ico}') +meta(name='msapplication-task-seperator', content='${18:1}') +meta(name='msapplication-TileColor', content='${19:#FF3300}') +meta(name='msapplication-TileImage', content='${20:path/to/tileimage.jpg}') +meta(name='msapplication-window', content='${21:width=1024;height=768}') +]]> + + head-ie + HEAD Internet Explorer + + source.jade + diff --git a/snippets/jade/head-link.sublime-snippet b/snippets/jade/head-link.sublime-snippet new file mode 100644 index 0000000..18f38b9 --- /dev/null +++ b/snippets/jade/head-link.sublime-snippet @@ -0,0 +1,86 @@ + + +link(rel='canonical', href='${1:https://example.com/2010/06/9-things-to-do-before-entering-social-media.html}') + + +link(rel='shortlink', href='${2:https://example.com/?p=42}') + + +link(rel='amphtml', href='${3:https://example.com/path/to/amp-version.html}') + + +link(rel='stylesheet', href='${4:https://example.com/styles.css}') + + +link(rel='manifest', href='${5:manifest.json}') + + +link(rel='author', href='${6:humans.txt}') + + +link(rel='copyright', href='${7:copyright.html}') + + +link(rel='alternate', href='${8:https://es.example.com/}', hreflang='${9:es}') + + +link(rel='me', href='${10:https://google.com/profiles/thenextweb}', type='text/html) +link(rel='me', href='${11:mailto:name@example.com}') +link(rel='me', href='${12:sms:+15035550125}') + + +link(rel='archives', href='${13:https://example.com/2003/05/}', title='${14:May 2003}') + + +link(rel='index', href='${15:https://example.com/}', title='${16:DeWitt Clinton}') + + +link(rel='start', href='${17:https://example.com/photos/pattern_recognition_1_about/}', title='${18:Pattern Recognition 1}') + + +link(rel='prev', href='${19:https://example.com/opensearch/opensearch-and-openid-a-sure-way-to-get-my-attention/}', title='${20:OpenSearch and OpenID? A sure way to get my attention.}') + + +link(rel='self' type='application/atom+xml', href='${21:https://example.com/atomFeed.php?page=3}') + + +link(rel='first', href='${22:https://example.com/atomFeed.php}') +link(rel='next', href='${23:https://example.com/atomFeed.php?page=4}') +link(rel='previous', href='${24:https://example.com/atomFeed.php?page=2}') +link(rel='last', href='${25:https://example.com/atomFeed.php?page=147}') + + +link(rel='EditURI', href='${26:https://example.com/xmlrpc.php?rsd', type='application/rsd+xml}', title='${27:RSD}') + + +link(rel='pingback', href='${28:https://example.com/xmlrpc.php}') + + +link(rel='webmention', href='${29:https://example.com/webmention}') + + +link(rel='import', href='${30:component.html}') + + +link(rel='search', href='${31:/open-search.xml}', type='application/opensearchdescription+xml', title='${32:Search Title}') + + +link(rel='alternate', href='${33:https://feeds.feedburner.com/example}', type='application/rss+xml', title='${34:RSS}') +link(rel='alternate', href='${35:https://example.com/feed.atom}', type='application/atom+xml', title='${35:Atom 0.3}') + + +link(rel='dns-prefetch', href='${36://example.com/}') +link(rel='preconnect', href='${37:https://www.example.com/}') +link(rel='prefetch', href='${38:https://www.example.com/}') +link(rel='prerender', href='${39:https://example.com/}') +link(rel='subresource', href='${40:styles.css}') +link(rel='preload', href='${41:image.png}') + +]]> + + head-link + HEAD Link + + source.jade + diff --git a/snippets/jade/head-meta.sublime-snippet b/snippets/jade/head-meta.sublime-snippet new file mode 100644 index 0000000..e37863c --- /dev/null +++ b/snippets/jade/head-meta.sublime-snippet @@ -0,0 +1,88 @@ + + + + +meta(http-equiv='Content-Security-Policy', content='${3:default-src 'self'}') + + + + +meta(name='application-name', content='${4:Application Name}') + + + +meta(name='description', content='${5:A description of the page}') + + +meta(name='robots', content='${6:index,follow,noodp}') +meta(name='googlebot', content='${7:index,follow}') + + +meta(name='google', content='${8:nositelinkssearchbox}') + + +meta(name='google', content='${9:notranslate}') + + +meta(name='google-site-verification', content='${10:verification_token}') + + +meta(name='generator', content='${11:program}') + + +meta(name='subject', content='${12:your website's subject}') + + +meta(name='abstract', content='${12}') + + +meta(name='topic', content='${14}') + + +meta(name='summary', content='${15}') + + +meta(name='classification', content='${16:business}') + + +meta(name='url', content='${17:https://example.com/}') + + +meta(name='identifier-URL', content='${18:https://example.com/}') + +meta(name='directory', content='${19:submission}') + + +meta(name='category', content='${20:}') + + +meta(name='coverage', content='${21:Worldwide}') + + +meta(name='distribution', content='${22:Global}') + + +meta(name='rating', content='${23:General}') + + +meta(name='referrer', content='${24:never}') + + +meta(name='format-detection', content='${25:telephone=no}') + + +meta(name='ICBM', content='${26:latitude, longitude}') +meta(name='geo.position', content='${27:latitude;longitude}') +meta(name='geo.region', content='${28:country[-state]}') +meta(name='geo.placename', content='${29:city/town}') +]]> + + head-meta + HEAD Meta + + source.jade + diff --git a/snippets/jade/head-minimum.sublime-snippet b/snippets/jade/head-minimum.sublime-snippet new file mode 100644 index 0000000..30c35eb --- /dev/null +++ b/snippets/jade/head-minimum.sublime-snippet @@ -0,0 +1,14 @@ + + +title ${3:Page Title} +]]> + + head-minimum + HEAD Recommended Minimum + + source.jade + diff --git a/snippets/jade/head-oembed.sublime-snippet b/snippets/jade/head-oembed.sublime-snippet new file mode 100644 index 0000000..dfb5251 --- /dev/null +++ b/snippets/jade/head-oembed.sublime-snippet @@ -0,0 +1,11 @@ + + + + head-oebmed + HEAD OEmbed + + source.jade + diff --git a/snippets/jade/head-qq-mobile-browser.sublime-snippet b/snippets/jade/head-qq-mobile-browser.sublime-snippet new file mode 100644 index 0000000..01d92c7 --- /dev/null +++ b/snippets/jade/head-qq-mobile-browser.sublime-snippet @@ -0,0 +1,15 @@ + + +meta(name='x5-orientation', content='${1:landscape/portrait}') + +meta(name='x5-fullscreen', content='${2:true}') + +meta(name='x5-page-mode', content='${3:app}') +]]> + + head-qq + HEAD QQ Mobile Browser + + source.jade + diff --git a/snippets/jade/head-twitter.sublime-snippet b/snippets/jade/head-twitter.sublime-snippet new file mode 100644 index 0000000..1552ba4 --- /dev/null +++ b/snippets/jade/head-twitter.sublime-snippet @@ -0,0 +1,18 @@ + + + +]]> + + head-twitter + HEAD Twitter + + source.jade + diff --git a/snippets/jade/head-uc-mobile-browser.sublime-snippet b/snippets/jade/head-uc-mobile-browser.sublime-snippet new file mode 100644 index 0000000..5424645 --- /dev/null +++ b/snippets/jade/head-uc-mobile-browser.sublime-snippet @@ -0,0 +1,23 @@ + + +meta(name='screen-orientation', content='${1:landscape/portrait}') + +meta(name='full-screen', content='${2:yes}') + +meta(name='imagemode', content='${3:force}') + +meta(name='browsermode', content='${4:application}') + +meta(name='nightmode', content='${5:disable}') + +meta(name='layoutmode', content='${6:fitscreen}') + +meta(name='wap-font-scale', content='${7:no}') +]]> + + head-uc + HEAD UC Mobile Browser + + source.jade +