Update
This commit is contained in:
parent
676b8d5092
commit
7213d46806
62
html-meta.md
62
html-meta.md
|
|
@ -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
|
||||
<!-- viewport -->
|
||||
<meta name='viewport' content='width=device-width'>
|
||||
<meta name='viewport' content='width=1024'>
|
||||
```
|
||||
|
||||
<title>...</title>
|
||||
<meta property='og:title' content='...'>
|
||||
<meta name='twitter:title' content='...'>
|
||||
### More opengraph
|
||||
|
||||
### Description
|
||||
```html
|
||||
<meta name="og:site_name" content="...">
|
||||
<meta name="og:type" content="website">
|
||||
|
||||
<meta name="description" content="...">
|
||||
<meta property="og:description" content="...">
|
||||
<meta property="twitter:description" content="...">
|
||||
<meta name="fb:app_id" content="...">
|
||||
<meta name="fb:admins" content="UID1,UID2"> <!-- unless there's app_id -->
|
||||
|
||||
### Image
|
||||
<meta name="og:audio" content="http://.../theme.mp3">
|
||||
<meta name="og:video" content="http://.../trailer.swf">
|
||||
```
|
||||
|
||||
<meta name="twitter:image" content="http://...">
|
||||
<meta property="og:image" content="http://...">
|
||||
### Opengraph for articles
|
||||
|
||||
```html
|
||||
article:published_time
|
||||
article:modified_time
|
||||
article:expiration_time
|
||||
article:author
|
||||
article:section
|
||||
article:tag
|
||||
```
|
||||
|
||||
### Reference
|
||||
|
||||
|
|
|
|||
|
|
@ -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
9
vim.md
|
|
@ -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
|
||||
-----
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue