This commit is contained in:
Rico Sta. Cruz 2015-01-28 09:01:00 +08:00
parent 676b8d5092
commit 7213d46806
3 changed files with 59 additions and 21 deletions

View File

@ -3,37 +3,59 @@ title: "HTML: meta tags"
layout: default
---
### Viewport
```html
<meta charset='utf-8'>
<meta name='viewport' content='width=device-width'>
<meta name='viewport' content='width=1024'>
<!-- title -->
<title>...</title>
<meta property='og:title' content='...'>
<meta name='twitter:title' content='...'>
### UA
<!-- url -->
<meta property='og:url' content='http://...'>
<meta name='twitter:url' content='http://...'>
<link rel='canonical' href='http://...'>
<meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'>
<!-- desc -->
<meta name='description' content='...'>
<meta property='og:description' content='...'>
<meta name='twitter:description' content='...'>
### URL
<!-- image -->
<meta property="og:image" content="http://...">
<meta name="twitter:image" content="http://...">
<meta property='og:url' content='http://...'>
<meta name='twitter:url' content='http://...'>
<link rel='canonical' href='http://...'>
<!-- ua -->
<meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'>
### Title
<title>...</title>
<meta property='og:title' content='...'>
<meta name='twitter:title' content='...'>
<!-- viewport -->
<meta name='viewport' content='width=device-width'>
<meta name='viewport' content='width=1024'>
```
### Description
### More opengraph
<meta name="description" content="...">
<meta property="og:description" content="...">
<meta property="twitter:description" content="...">
```html
<meta name="og:site_name" content="...">
<meta name="og:type" content="website">
### Image
<meta name="fb:app_id" content="...">
<meta name="fb:admins" content="UID1,UID2"> <!-- unless there's app_id -->
<meta name="twitter:image" content="http://...">
<meta property="og:image" content="http://...">
<meta name="og:audio" content="http://.../theme.mp3">
<meta name="og:video" content="http://.../trailer.swf">
```
### Opengraph for articles
```html
article:published_time
article:modified_time
article:expiration_time
article:author
article:section
article:tag
```
### Reference

View File

@ -28,6 +28,13 @@ layout: default
array.concat([X,Y]) //=> [_,_,_,_,_,X,Y]
### Inserting
// after -- [_,_,REF,NEW,_,_]
array.splice(array.indexOf(REF)+1, 0, NEW))
// before -- [_,_,NEW,REF,_,_]
array.splice(array.indexOf(REF), 0, NEW))
### Replace items
array.splice(2, 1, X) // array == [a,b,X,d,e]

9
vim.md
View File

@ -96,6 +96,15 @@ Tags
:tjump Classname # Find definitions of Classname (auto-select 1st)
:tag Classname # Jump to first definition of Classname
Case
----
~ # toggle case (Case => cASE)
gU # uppercase
gu # lowercase
gUU # uppercase current line (also gUgU)
guu # lowercase current line (also gugu)
Marks
-----