From 4c4ab9dfc365f3d5e4bf907c4cd00874e1263339 Mon Sep 17 00:00:00 2001 From: Marco Biedermann Date: Tue, 7 Jun 2016 22:54:56 +0200 Subject: [PATCH] initial commit --- readme.md | 51 +++++++++++ snippets/head-360-browser.snippet | 11 +++ snippets/head-app-links.snippet | 20 +++++ snippets/head-apple-ios.snippet | 30 +++++++ snippets/head-apple-safari.snippet | 11 +++ snippets/head-elements.snippet | 25 ++++++ .../head-facebook-instant-articles.snippet | 17 ++++ snippets/head-facebook-open-graph.snippet | 20 +++++ snippets/head-favicons.snippet | 19 ++++ snippets/head-google-android.snippet | 13 +++ snippets/head-google-chrome.snippet | 13 +++ snippets/head-google-plus-schema.snippet | 13 +++ snippets/head-internet-explorer.snippet | 37 ++++++++ snippets/head-link.snippet | 49 +++++++++++ snippets/head-meta.snippet | 88 +++++++++++++++++++ snippets/head-minimum.snippet | 14 +++ snippets/head-oembed.snippet | 15 ++++ snippets/head-qq-mobile-browser.snippet | 15 ++++ snippets/head-twitter.snippet | 18 ++++ snippets/head-uc-mobile-browser.snippet | 23 +++++ 20 files changed, 502 insertions(+) create mode 100644 readme.md create mode 100644 snippets/head-360-browser.snippet create mode 100644 snippets/head-app-links.snippet create mode 100644 snippets/head-apple-ios.snippet create mode 100644 snippets/head-apple-safari.snippet create mode 100644 snippets/head-elements.snippet create mode 100644 snippets/head-facebook-instant-articles.snippet create mode 100644 snippets/head-facebook-open-graph.snippet create mode 100644 snippets/head-favicons.snippet create mode 100644 snippets/head-google-android.snippet create mode 100644 snippets/head-google-chrome.snippet create mode 100644 snippets/head-google-plus-schema.snippet create mode 100644 snippets/head-internet-explorer.snippet create mode 100644 snippets/head-link.snippet create mode 100644 snippets/head-meta.snippet create mode 100644 snippets/head-minimum.snippet create mode 100644 snippets/head-oembed.snippet create mode 100644 snippets/head-qq-mobile-browser.snippet create mode 100644 snippets/head-twitter.snippet create mode 100644 snippets/head-uc-mobile-browser.snippet diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..b128c86 --- /dev/null +++ b/readme.md @@ -0,0 +1,51 @@ +# HTML Head Sublime Text Snippets + +A Sublime Text snippet library for HTML head elements, from the project [HEAD](https://github.com/joshbuchea/HEAD). + +## Installation + +### With [Package Control](https://packagecontrol.io/): + +1. Run “Package Control: Install Package” command, find and install HTML Head Snippets plugin. +1. Restart Sublime Text Editor (if required) + +### Git + +1. Clone the repository into your Sublime Text 2 / 3 package directory. +``` +git clone https://github.com/marcobiedermann/sublime-head-snippets.git +``` + +### Download + +1. Download the [.zip](https://github.com/marcobiedermann/sublime-head-snippets/archive/master.zip) file and unzip it +1. Move the content into your Sublime Text 2 / 3 package directory. You can find your package directory by going to `Preferences > Browser Packages`. + + +## Usage + +Start typing `head-` in HTML or PHP files and the autocomplete windows opens. + +| Head Tags | Snippet code | +|-----------------------------|---------------| +| 360 Browser | head-360 | +| App Links | head-applinks | +| Apple Safari | head-safari | +| Apple iOS | head-ios | +| Elements | head-elements | +| Facebook / Instant Articles | head-fbia | +| Facebook / Open Graph | head-fbog | +| Favicons | head-favicons | +| Google Chrome | head-chrome | +| Google+ / Schema.org | head-gplus | +| Link | head-link | +| Meta | head-meta | +| Microsoft Internet Explorer | head-ie | +| QQ Mobile Browser | head-qq | +| Recommended Minimum | head-minimum | +| Twitter | head-twitter | +| UC Mobile Browser | head-uc | + +## License + +HTML Head Sublime Text Snippets Plugin is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT). diff --git a/snippets/head-360-browser.snippet b/snippets/head-360-browser.snippet new file mode 100644 index 0000000..c98ea9b --- /dev/null +++ b/snippets/head-360-browser.snippet @@ -0,0 +1,11 @@ + + + +]]> + + head-360 + HEAD 360 Browser + + source.html, source.php + diff --git a/snippets/head-app-links.snippet b/snippets/head-app-links.snippet new file mode 100644 index 0000000..4199dda --- /dev/null +++ b/snippets/head-app-links.snippet @@ -0,0 +1,20 @@ + + + + + + + + + + + + +]]> + + head-applinks + HEAD App Links + + source.html, source.php + diff --git a/snippets/head-apple-ios.snippet b/snippets/head-apple-ios.snippet new file mode 100644 index 0000000..333f61a --- /dev/null +++ b/snippets/head-apple-ios.snippet @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + +]]> + + head-ios + HEAD Apple iOS + + source.html, source.php + diff --git a/snippets/head-apple-safari.snippet b/snippets/head-apple-safari.snippet new file mode 100644 index 0000000..c50f35e --- /dev/null +++ b/snippets/head-apple-safari.snippet @@ -0,0 +1,11 @@ + + + +]]> + + head-safari + HEAD Apple Safari + + source.html, source.php + diff --git a/snippets/head-elements.snippet b/snippets/head-elements.snippet new file mode 100644 index 0000000..0a64277 --- /dev/null +++ b/snippets/head-elements.snippet @@ -0,0 +1,25 @@ + + +Page Title + + + + + + + + + + + + +]]> + + head-elements + HEAD Elements + + source.html, source.php + diff --git a/snippets/head-facebook-instant-articles.snippet b/snippets/head-facebook-instant-articles.snippet new file mode 100644 index 0000000..9a8b4c2 --- /dev/null +++ b/snippets/head-facebook-instant-articles.snippet @@ -0,0 +1,17 @@ + + + + + + + + + +]]> + + head-fbia + HEAD Facebook / Instant Articles + + source.html, source.php + diff --git a/snippets/head-facebook-open-graph.snippet b/snippets/head-facebook-open-graph.snippet new file mode 100644 index 0000000..b531d4c --- /dev/null +++ b/snippets/head-facebook-open-graph.snippet @@ -0,0 +1,20 @@ + + + + + + + + + + + + +]]> + + head-fbog + HEAD Facebook / Open Graph + + source.html, source.php + diff --git a/snippets/head-favicons.snippet b/snippets/head-favicons.snippet new file mode 100644 index 0000000..05dae46 --- /dev/null +++ b/snippets/head-favicons.snippet @@ -0,0 +1,19 @@ + + + + + + + + + + + +]]> + + head-favicon + HEAD Favicon + + source.html, source.php + diff --git a/snippets/head-google-android.snippet b/snippets/head-google-android.snippet new file mode 100644 index 0000000..869d273 --- /dev/null +++ b/snippets/head-google-android.snippet @@ -0,0 +1,13 @@ + + + + + +]]> + + head-android + HEAD Google Android + + source.html, source.php + diff --git a/snippets/head-google-chrome.snippet b/snippets/head-google-chrome.snippet new file mode 100644 index 0000000..c714659 --- /dev/null +++ b/snippets/head-google-chrome.snippet @@ -0,0 +1,13 @@ + + + + + +]]> + + head-chrome + HEAD Google Chrome + + source.html, source.php + diff --git a/snippets/head-google-plus-schema.snippet b/snippets/head-google-plus-schema.snippet new file mode 100644 index 0000000..4d0f635 --- /dev/null +++ b/snippets/head-google-plus-schema.snippet @@ -0,0 +1,13 @@ + + + + + +]]> + + head-gplus + HEAD Google+ / Schema.org + + source.html, source.php + diff --git a/snippets/head-internet-explorer.snippet b/snippets/head-internet-explorer.snippet new file mode 100644 index 0000000..dc16fca --- /dev/null +++ b/snippets/head-internet-explorer.snippet @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +]]> + + head-ie + HEAD Internet Explorer + + source.html, source.php + diff --git a/snippets/head-link.snippet b/snippets/head-link.snippet new file mode 100644 index 0000000..b71fa2d --- /dev/null +++ b/snippets/head-link.snippet @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +]]> + + head-link + HEAD Link + + source.html, source.php + diff --git a/snippets/head-meta.snippet b/snippets/head-meta.snippet new file mode 100644 index 0000000..ca1ac62 --- /dev/null +++ b/snippets/head-meta.snippet @@ -0,0 +1,88 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +]]> + + head-meta + HEAD Meta + + source.html, source.php + diff --git a/snippets/head-minimum.snippet b/snippets/head-minimum.snippet new file mode 100644 index 0000000..6a9f150 --- /dev/null +++ b/snippets/head-minimum.snippet @@ -0,0 +1,14 @@ + + + + + +Page Title +]]> + + head-minimum + HEAD Recommended Minimum + + source.html, source.php + diff --git a/snippets/head-oembed.snippet b/snippets/head-oembed.snippet new file mode 100644 index 0000000..448a458 --- /dev/null +++ b/snippets/head-oembed.snippet @@ -0,0 +1,15 @@ + + + +]]> + + head-oebmed + HEAD OEmbed + + source.html, source.php + diff --git a/snippets/head-qq-mobile-browser.snippet b/snippets/head-qq-mobile-browser.snippet new file mode 100644 index 0000000..98d6360 --- /dev/null +++ b/snippets/head-qq-mobile-browser.snippet @@ -0,0 +1,15 @@ + + + + + + + +]]> + + head-qq + HEAD QQ Mobile Browser + + source.html, source.php + diff --git a/snippets/head-twitter.snippet b/snippets/head-twitter.snippet new file mode 100644 index 0000000..14c0afa --- /dev/null +++ b/snippets/head-twitter.snippet @@ -0,0 +1,18 @@ + + + + + + + + + + +]]> + + head-twitter + HEAD Twitter + + source.html, source.php + diff --git a/snippets/head-uc-mobile-browser.snippet b/snippets/head-uc-mobile-browser.snippet new file mode 100644 index 0000000..2cec170 --- /dev/null +++ b/snippets/head-uc-mobile-browser.snippet @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + +]]> + + head-uc + HEAD UC Mobile Browser + + source.html, source.php +