diff options
author | Thibaud LeprĂȘtre <thibaud.lepretre@gmail.com> | 2017-11-12 21:45:37 +0300 |
---|---|---|
committer | Thibaud LeprĂȘtre <thibaud.lepretre@gmail.com> | 2017-11-23 01:42:52 +0300 |
commit | e4a2f316ef68666e19a67e794db76ab555627428 (patch) | |
tree | edc7cabe08eade062c15c0a9b75acb81d527c857 /docs | |
parent | 7ff200e9d0cf4e77148c05d1adef7c64c86b08eb (diff) |
Rework meta and social tag
- Add more twitter meta tag
- Fix existing social tag
- Add link canonical
Merge both existing PR #206 and 216
Diffstat (limited to 'docs')
-rw-r--r-- | docs/user.md | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/user.md b/docs/user.md index 0cd7924..f248e3e 100644 --- a/docs/user.md +++ b/docs/user.md @@ -33,6 +33,7 @@ If you want to report a bug or ask a question, [create an issue](https://github. - [Integrated services configuration](#integrated-services-configuration) * [Google Analytics](#google-analytics) * [Exclude hostname (localhost) while writing articles](#exclude-hostname-localhost-while-writing-articles) + * [Social cards](#social-cards) - [Quick & easy modifications](#quick--easy-modifications) * [Prerequisites](#prerequisites) * [Change global style](#change-global-style) @@ -495,6 +496,16 @@ Follow these steps, to add new filter : 7. Select **Custom filter**, **Filter Field** : `Hostname`, **Filter Pattern** : `(.*?localhost.*?)` 8. Click on **Save** button +### Social cards + +You can configure how links to your site will appear in Twitter and/or Facebook. There are several ways of setting up card parameters: + +* **Title**: if in a page with title (like a post) it will use post title, otherwise, will use site title. +* **Description**: will use article summary, if it does not exist, will use site description. +* **Site author** (twitter only): will use the value of `twitter` field on ``[[params.Author]]`` section of your `config.toml` file. +* **Content author** (twitter only): will use the value of the field `twitter` in your document header. If not specified, will use the **Site author** field value. +* **Image**: will use the following fields in order, if one is not available, the next will be taken: thumbnail of document, cover of document, gallery images, gravatar email then author picture, . + ## Quick & easy modifications ### Prerequisites |