|
| 1 | +--- |
| 2 | +layout: page |
| 3 | +title: seo |
| 4 | +permalink: "/documentation/seo/" |
| 5 | +--- |
| 6 | +# SEO |
| 7 | +This theme uses the following options SEO options: |
| 8 | +- [Keyword Metadata](#keyword-metadata) |
| 9 | +- [Description Metadata](#description-metadata) |
| 10 | +- [Google Analytics](#google-analytics) |
| 11 | +- [Facebook Open Graph](#facebook-open-graph) |
| 12 | +- [Twitter Cards](#twitter-cards) |
| 13 | + |
| 14 | +-------- |
| 15 | +## Keyword Metadata |
| 16 | +### Sitewide Defaults |
| 17 | +If you set keywords via `_config.yml` they will be used as the default keywords for the metadata for each page. |
| 18 | + |
| 19 | +**Example** |
| 20 | +``` |
| 21 | +keywords: jekyll, jekyll theme, portfolio theme, artist theme |
| 22 | +``` |
| 23 | + |
| 24 | +### Per Page |
| 25 | +You can override the `_config.yml` defaults for any page or post by adding the following to it's yaml frontmatter. |
| 26 | + |
| 27 | +**Example** |
| 28 | +``` |
| 29 | +keywords: "different, words, than the defaults" |
| 30 | +``` |
| 31 | + |
| 32 | +-------- |
| 33 | +## Description Metadata |
| 34 | +### Sitewide Defaults |
| 35 | +If you set a description via `_config.yml` it will be used as the default description for the metadata for each page. |
| 36 | + |
| 37 | +**Example** |
| 38 | +``` |
| 39 | +description: A witty description. |
| 40 | +``` |
| 41 | + |
| 42 | +### Per Page |
| 43 | +You can override the `_config.yml` defaults for any page or post by adding the following to it's yaml frontmatter. |
| 44 | + |
| 45 | +**Example** |
| 46 | +``` |
| 47 | +description: "An even wittier description." |
| 48 | +``` |
| 49 | + |
| 50 | +-------- |
| 51 | +## Google Analytics* |
| 52 | +- *Uses Javascript |
| 53 | +- Enable by adding the following code to your `_config.yml` |
| 54 | +``` |
| 55 | +google_universal_analytics: YOUR-ANALYTICS-ID |
| 56 | +google_universal_analytics_cookiedomain: auto |
| 57 | +``` |
| 58 | +- Replace YOUR-ANALYTICS-ID with your actual analytics ID. |
| 59 | + |
| 60 | +-------- |
| 61 | +## Facebook Open Graph |
| 62 | +### Sitewide Defaults |
| 63 | +Enable by filling out the following in your `config.yml` |
| 64 | + |
| 65 | +``` |
| 66 | +facebook_app_id: |
| 67 | +facebook_locale: en_US |
| 68 | +facebook_page: https://www.facebook.com/YOUR-ACCOUNT |
| 69 | +facebook_image: images/author.jpg |
| 70 | +``` |
| 71 | + |
| 72 | +- facebook_app_id: [Get One Here](https://developers.facebook.com/?advanced_app_create=true) |
| 73 | +- facebook_locale: your locale |
| 74 | +- facebook_page: the link to your facebook page |
| 75 | +- facebook_image: the default image to use when someone shares your post/page on Facebook |
| 76 | + - this image should be at least 200x200 pixels |
| 77 | + |
| 78 | +### Per Page |
| 79 | +You can set a custom opengraph metadata per page/post by adding the following to it's yaml frontmatter: |
| 80 | + |
| 81 | +``` |
| 82 | +facebook_image: /images/path-to-your-image.jpg |
| 83 | +facebook_type: article |
| 84 | +``` |
| 85 | +- facebook_image: the path to the image you want displayed when shared on Facebook. 200x200 pixel minimum. |
| 86 | +- facebook_type: defaults to 'article' |
| 87 | + - other options at [http://ogp.me/#types](http://ogp.me/#types) |
| 88 | + |
| 89 | +--------- |
| 90 | +## Twitter Cards |
| 91 | +### Sitewide Defaults |
| 92 | +Fill out the following in your config.yml |
| 93 | + |
| 94 | +``` |
| 95 | +twitter_user: YOUR-USER |
| 96 | +twitter_card: true |
| 97 | +twitter_image: images/author.jpg |
| 98 | +``` |
| 99 | +- twitter_user: Enter your username (no @ before it) |
| 100 | +- twitter_card: true/false |
| 101 | + - enables/disables twitter cards |
| 102 | +- twitter_image: the default image to use when someone shares your post/page on Facebook |
| 103 | + - this image should be at least 200x200 pixels |
| 104 | + |
| 105 | +### Per Page |
| 106 | +You can set a custom Twitter card metadata per page/post by adding the following to it's yaml frontmatter: |
| 107 | + |
| 108 | +``` |
| 109 | +twitter_image: /images/path-to-your-image.jpg |
| 110 | +``` |
| 111 | +- twitter_image: the path to the image you want displayed when shared on Facebook. 200x200 pixel minimum. |
0 commit comments