| Left: | ||
| Right: |
| OLD | NEW |
|---|---|
| (Empty) | |
| 1 title=Metadata | |
|
ire
2018/01/26 11:33:59
I added this page because 1) I think it's easier t
juliandoucette
2018/01/30 04:04:41
Acknowledged.
| |
| 2 description=Default metadata for eyeo websites | |
| 3 | |
| 4 <head> | |
| 5 <style> | |
| 6 code { font-family: monospace; } | |
|
ire
2018/01/26 11:33:59
This could/should be in website-defaults. If you a
juliandoucette
2018/01/30 04:04:41
NIT: Please add it separately and remove the head
ire
2018/01/30 08:19:10
https://codereview.adblockplus.org/29684561
| |
| 7 </style> | |
| 8 </head> | |
| 9 | |
| 10 # Metadata | |
| 11 | |
| 12 Default metadata for eyeo websites | |
| 13 | |
| 14 1. [Social metadata](#social) | |
| 15 | |
| 16 ## Social metadata { #social } | |
| 17 | |
| 18 ### Local variables | |
| 19 | |
| 20 The following variables can be set on a per page basis: | |
|
juliandoucette
2018/01/30 04:04:41
NIT: Perhaps we should mention where/how they can
ire
2018/01/30 08:19:09
I think this is more global "how to use the cms" i
| |
| 21 | |
| 22 - `og_url` | |
| 23 - `og_type` | |
| 24 - `og_site_name` | |
|
juliandoucette
2018/01/30 04:04:41
NIT: Should not be page specific.
ire
2018/01/30 08:19:08
I think it's very unlikely, but perhaps it could b
| |
| 25 - `og_title` | |
| 26 - `og_description` | |
| 27 - `og_image` | |
| 28 - `og_image_alt` | |
| 29 - `og_locale` | |
|
juliandoucette
2018/01/30 04:04:41
NIT: Should not be set by the user/developer.
ire
2018/01/30 08:19:10
Same comment as above. I can't really imagine a ca
| |
| 30 - `facebook_id` | |
|
juliandoucette
2018/01/30 04:04:41
NIT: Should not be page specific?
ire
2018/01/30 08:19:09
I can imagine that there could be different pages
| |
| 31 - `twitter_site` | |
| 32 - `twitter_card` | |
| 33 - `twitter_image` | |
| 34 - `twitter_image_alt` | |
| 35 - `pinterest_id` | |
|
juliandoucette
2018/01/30 04:04:41
NIT: Should not be page specific?
ire
2018/01/30 08:19:09
See comment above.
| |
| 36 | |
| 37 ### Global variables | |
| 38 | |
| 39 Additionally, the following global variables can be set for the entire site. | |
|
juliandoucette
2018/01/30 04:04:41
This is a locale string not a global variable. The
ire
2018/01/30 08:19:10
I didn't mean it as a literal global variable. I m
| |
| 40 | |
| 41 #### Site Name | |
| 42 | |
| 43 In a `locales/[locale]/site.json` file: | |
|
juliandoucette
2018/01/30 04:04:41
I think that it must be defined in the defaultloca
ire
2018/01/30 08:19:09
I don't think so. There's no file in website-defau
| |
| 44 | |
| 45 ``` | |
| 46 { | |
| 47 "name": { | |
| 48 "message": "eyeo", | |
| 49 "description": "Website title" | |
| 50 } | |
| 51 } | |
| 52 ``` | |
| 53 | |
| 54 #### Social accounts | |
| 55 | |
| 56 In the `settings.ini` file: | |
|
juliandoucette
2018/01/30 04:04:41
NIT: I think "In `/settings.ini`" gets the point a
ire
2018/01/30 08:19:09
Done.
| |
| 57 | |
| 58 ``` | |
| 59 [social] | |
| 60 facebook_id = 1234 | |
|
juliandoucette
2018/01/30 04:04:41
NIT: Are these IDs actually short integers?
ire
2018/01/30 08:19:10
I don't think so, I think they may be alphanumeric
| |
| 61 pinterest_id = 1234 | |
| 62 twitter = @username | |
|
juliandoucette
2018/01/30 04:04:41
(Why do they make you include the @ sign!? :'( )
ire
2018/01/30 08:19:09
Done.
| |
| 63 ``` | |
| OLD | NEW |