Commit Graph

236 Commits

Author SHA1 Message Date
Kyle Niewiada 9ec685a31b Merge branch 'master' into master 2017-04-04 11:51:05 -04:00
Aaron Gustafson 8a8a5e9859 Added hyphen to underscore coersion 2017-04-03 20:04:29 -04:00
Aaron Gustafson a2f64d46c3 Merge branch 'master' into add-locale-support 2017-04-03 15:10:14 -04:00
Aaron Gustafson 18ec5736c2 Variable rename 2017-04-03 15:09:35 -04:00
Kyle Niewiada ac0886dbf2 Merge branch 'master' into master 2017-04-03 13:51:25 -04:00
Ben Balter 32ec9300dc Merge pull request #174 from jhabdas/twitter-uses-og-image
refactor(template): use og:image for twitter
2017-04-03 13:51:00 -04:00
Kyle Niewiada 48ba285251 Image changes should be removed 2017-04-03 13:36:45 -04:00
Kyle Niewiada e8e54a924c Merge branch 'master' into master 2017-04-03 13:11:19 -04:00
Josh Habdas e264a9a94b
refactor(template): use og:image for twitter
#77 and #78 added support for different images on Twitter and Facebook, an advanced feature of SEO
Tag Gem. The implementation has led to complications updating JSON-LD data in #151. Under Pareto
principal we can reasonably assume this feature is not often used, and, as such, should be removed.
The result of which simplifies template logic, offers a fallback experience by leverages Twitter's
use of `og:image` in place of `twitter:image` (sees twitter card tag ref) and helps unblock #151.

Users can no longer specify a separate twitter and Facebook image. If both a Facebook (Open Graph)
and Twitter image are provided in the `image` object, the Facebook image will take precedence.
2017-04-04 00:58:53 +08:00
Aaron Gustafson a1e5b4e53d Merge remote-tracking branch 'upstream/master' into add-locale-support 2017-04-03 11:26:11 -04:00
Aaron Gustafson abf32914b7 Switching to site.lang & page.lang to align with jekyll-feed 2017-04-03 11:21:48 -04:00
Frank Taillandier ef8fe3106c bump and appease Rubocop 2017-03-31 22:42:46 +02:00
Aaron Gustafson 2191a550ee Test cleanup 2017-03-31 14:41:46 -04:00
Aaron Gustafson 308cf7a523 Added support for locale exposure as `og:locale` 2017-03-31 14:22:08 -04:00
Kyle Niewiada 0b289b820b Merge branch 'master' into master 2017-03-03 08:16:11 -05:00
Josh Habdas 2a48f272f6
Be more explicity with title assignments 2017-03-02 21:29:26 +08:00
Josh Habdas 51db5806c2
Correct template logic, resolve style issues 2017-03-02 20:24:13 +08:00
Josh Habdas 4eeb09a749
Update title separator. Closes #121
Replaces the "-" used as a title separator with "|".
Ref: https://moz.com/learn/seo/title-tag

Also updates docs to specify title optional and fix errata.
2017-03-02 12:15:09 +08:00
Kyle Niewiada 4c577ffb47 Add legacy test and maintain old methods 2017-02-17 10:30:44 -05:00
Kyle Niewiada a847a69eea Fix small test case blunder. 2017-02-16 14:16:11 -05:00
Kyle Niewiada ba16b955c8 Propose new image handling method. 2017-02-16 14:07:35 -05:00
Kyle Niewiada 8e36fe4da1 Update docs. Add use case. Add test. 2017-02-15 12:41:30 -05:00
Kyle Niewiada cc02710dbf Merge branch 'master' into master 2017-02-15 10:00:52 -05:00
Ben Balter fa96401540
Merge branch 'master' of https://github.com/renshuki/jekyll-seo-tag into renshuki-master 2017-02-13 10:04:12 -05:00
Kyle Niewiada 987e1ea81c Merge branch 'master' into master 2017-01-30 10:38:18 -05:00
kyle da498c7c5f Simplify documentation. Change to snake_case. Use Path instead of adding URL. 2017-01-30 10:37:27 -05:00
renshuki e91babe998 Fix rubocop multiline hash errors 2017-01-30 10:53:19 +09:00
renshuki 903f9efab9 Implement seo_author.name 2017-01-29 04:33:50 +09:00
renshuki 81c9bc8fa4 Add author meta 2017-01-29 02:57:04 +09:00
kyle a0f65888e3 Remove Author tag. I guess it really isn't used anymore. 2017-01-25 12:18:29 -05:00
kyle 5437934214 Implement PR #103 for my own use. Change template to better fit existing style. 2017-01-25 11:35:18 -05:00
kyle fd5246a4cd Test output manually with Google Markup. Change inferred type. Improve test coverage 2017-01-25 11:05:38 -05:00
kyle 9aa2cbfb09 Wite tests for implemented features. 2017-01-18 14:57:36 -05:00
Kyle Niewiada 30d4ffc1a3 Fix language mistake
Well.... looks like I added an 'e'. Whoops.
2017-01-17 09:50:54 -05:00
Kyle Niewiada 4868d22b1b Add the rest of the JSON tags to pass blogPosting Errors/Warnings
This adds the rest of the JSON fields to pass all errors and blog postings.

- Adds page.image.url for the image url. (Will default to image if not present). 
- Add page.image.height and page.image.width for an image object (Will default back to image url if not present). 
- Add dateModified (will capture from yaml if present, if not it will use datePublished)
  - (I feel there should be a manual option for this as I sometimes save parts of my blog that shouldn't update the modified field, but still 
change the file timestamp).

This should create JSON that will pass all warnings/strong recommendations/errors from [Google's Structured Data Testing Tool](https://search.google.com/structured-data/testing-tool).
2017-01-17 09:39:41 -05:00
Kyle Niewiada 2ddab030f3 Fix word casing 2017-01-16 17:49:37 -05:00
Kyle Niewiada 8d2febf86c Fix typo. Oops. 2017-01-16 17:21:08 -05:00
Kyle Niewiada f82ea47534 Fix Google Structured Data Requests
Fixes missing author and name in blogPosting types with organization.
2017-01-16 17:18:50 -05:00
Josh Habdas a321a7f2f7
Incorporate feedback, add unit tests 2017-01-13 12:48:55 +08:00
Josh Habdas 0dea0333d2
Add support for Bing and Yandex webmaster tools. Closes #147 2017-01-12 14:22:00 +08:00
Ben Balter 97c5bf0e63 Bump to 2.1.0 2016-11-02 16:47:37 -04:00
David Darnes d999dc0a7e Wraps logo image json data in a publisher property
Fixes #89
2016-10-23 20:19:59 +01:00
Pat Hawks d7a67b563f Don't mangle text with newlines
Fixes #117
2016-10-19 19:04:42 -05:00
Pat Hawks 07eeffb6d9
Simplify minify regex 2016-10-15 14:24:13 -05:00
Pat Hawks df09740757
Take advantage of Jekyll 3.3.0 URL filters 2016-10-06 15:56:15 -05:00
Ben Balter 2631e3ea77 run rubocop -a 2016-09-08 11:33:03 -04:00
Ben Balter 53e807a99a Inherit Jekyll's rubocop config for consistency 2016-08-11 11:35:31 -04:00
toshi e6dffb9c5f Fix duplicated escape_once 2016-06-02 01:13:20 +09:00
Ben Balter d5e7d06599 Bump to 2.0.0 2016-05-31 11:28:46 -04:00
Pat Hawks 3f82f1c42e Use SmartyPants 2016-05-28 14:06:50 -05:00
Todd Eichel 9a23b7f41b Merge branch 'master' into use-prev-next-for-pagination 2016-05-11 17:35:30 -07:00
Todd Eichel 220901c140
Different philosophy for rel prev/next links based on recommendations from Google.
Details here: https://webmasters.googleblog.com/2011/09/pagination-with-relnext-and-relprev.html.

This replaces the per-page prev/next links with general ones that will be output whenever there is a paginator with a previous or next page to show.
2016-05-11 17:26:23 -07:00
Miguel Flores Ruiz de Eguino f772747728 Add facebook admins meta tag to template and facebook spec 2016-05-11 13:05:40 -05:00
Ben Balter ddb96a01ca Bump to 1.4.0 2016-04-25 13:08:47 -04:00
Pat Hawks 5403b7e20d Remove hard wrap (#79)
This was unintentionally introduced in #76
2016-04-25 10:00:10 -07:00
Pat Hawks d0160082cc
Add support for page images with absolute URLs 2016-04-25 08:15:32 -07:00
Ben Balter 2904bf9bab allow image to be an object 2016-04-19 09:55:34 -04:00
Ben Balter 0329f38b62 Bump to 1.3.3 2016-03-25 13:49:15 -04:00
Bo Turnbow ad5add0540
Add tests for large image Twitter card 2016-03-05 12:19:14 -08:00
Pat Hawks 2494901e64 Merge pull request #70 from DirtyF/patch-1 …
Large image summary Twitter Card support
2016-03-05 12:10:14 -08:00
Frank Taillandier 48af19f188 feedback from @BenBalter 2016-03-05 19:29:49 +01:00
Bo Turnbow 745663369a Assign seo_ vars site.logo and page.image 2016-03-04 14:44:32 -07:00
Frank Taillandier 892506cf38 Large image summary Twitter Card support
A proposal to fix #68
2016-03-03 22:28:12 +01:00
Bo Turnbow 54effa1abd Merge branch 'master' into master 2016-03-02 15:50:51 -07:00
Ben Balter 62e82338be Bump to 1.3.2 2016-03-02 12:02:37 -05:00
Pat Hawks f909777f3c
jsonify page.url instead of using quotes 2016-03-02 08:22:33 -08:00
Pat Hawks 2c808aced6
Do not repeat Open Graph tags for Twitter 2016-03-01 21:14:32 -08:00
Pat Hawks 38e688fcd9
Check for existance of seo_page_title before outputting 2016-03-01 21:14:18 -08:00
XhmikosR 5fb86bfa7b Be consistent with the quotes in output. 2016-03-01 18:47:37 +02:00
XhmikosR dae68cb01e Remove spaces before `:`. 2016-03-01 18:31:12 +02:00
Bo Turnbow 4cb0b75bfa Update JSON-LD output to current usage for site logo and page image 2016-02-26 16:13:29 -07:00
Ben Balter 1e6b9e55e9 minify json ld and test 2016-02-25 13:56:13 -05:00
Ben Balter b77a20d3d9 Bump to 1.3.1 2016-02-25 13:20:58 -05:00
Ben Balter 3aa3f4b88e require version 2016-02-25 13:20:47 -05:00
Ben Balter 7c4f8e2fe4 Bump to 1.3.0 2016-02-25 10:58:35 -05:00
Ben Balter 38afc5a4d0 Merge pull request #28 from jekyll/pr/json-ld
Consolidate and clean up JSON-LD
2016-02-25 10:50:37 -05:00
Bo Turnbow 2d0101bd1e Change site logo to expect a rooted url 2016-02-23 15:57:25 -07:00
Bo Turnbow b42501b45a Per Ben Balter, change usage to a rooted image url 2016-02-23 15:54:17 -07:00
Bo Turnbow 738f4efea7 Update twitter:image to output full url 2016-02-23 11:54:52 -07:00
Pat Hawks 11dea25ac8
DRY up JSON-LD 2016-02-22 18:31:59 -08:00
Pat Hawks f3e0e78993
Include sameAs links on About page 2016-02-22 18:13:43 -08:00
Carlos Garcés 09924c03ff Use seo_description instead of page.description
seo_description is used in the meta tags but not in the ld+json
If page.description is not set, the the description at ld+json will be null.
2016-02-22 17:59:12 -08:00
Pat Hawks a9c7499319 Consolidate JSON-LD blocks 2016-02-22 17:59:12 -08:00
Pat Hawks 93ffe7defd
Support article:publisher without fb:app_id 2016-02-21 16:28:03 -08:00
Ben Balter 6f57ca4ee3 properly namespace the version 2016-02-21 15:14:49 -05:00
Ben Balter 256a2d6f52 Bump to 1.2.0 2016-02-21 14:40:26 -05:00
Ben Balter 81be1da466 use title=false, not title: false 2016-02-21 14:25:15 -05:00
Ben Balter 6bc8a57315 Merge branch 'master' into pr/title-optional 2016-02-21 14:16:00 -05:00
Ben Balter f1cdf62b53 add support for authors an an array 2016-02-21 13:52:49 -05:00
Ben Balter 782729fad2 remove ruby author logic 2016-02-20 17:34:02 -05:00
Ben Balter 546448be1b move logic to ruby 2016-02-20 15:49:35 -05:00
Ben Balter 43fcf5b7dd Merge branch 'master' into pr/global-author 2016-02-20 14:28:13 -05:00
Ben Balter 86775d50f7 whitespace 2016-02-20 14:27:04 -05:00
Ben Balter bdedd23bf2 expose version in HTML comment 2016-02-20 14:26:06 -05:00
Ben Balter 2ee2f3e6e0 Bump to 1.1.0 2016-02-20 14:04:43 -05:00
Ben Balter f9bcb30d61 add rubocop 2016-02-09 18:48:24 -05:00
Ben Balter 28858810ed fix missing endif from merge 2016-02-09 18:33:53 -05:00
Ben Balter e4019ed6ed resolve merge conflict 2016-02-09 16:22:28 -05:00
Ben Balter 73827ad8ea Merge branch 'master' into google-site-verification 2016-02-09 16:22:01 -05:00
Ben Balter 6fc22a68f9 Merge pull request #46 from benbalter/facebook-meta
Facebook meta
2016-02-09 16:20:46 -05:00
Pat Hawks ffcd9a1da9
Lookup author in site.data.authors 2016-02-03 19:35:35 -08:00
Ben Balter 010acc3be1 Bump to 1.0.0 2016-02-03 12:56:16 -05:00
Ben Balter 02762b8b48 add facebook meta 2016-02-03 12:54:48 -05:00
Ben Balter 594d99f752 add google site verification meta tag 2016-02-03 12:41:05 -05:00
Ben Balter d73dc77d3f Merge pull request #36 from benbalter/pr/default
Add `default` filter
2016-02-03 12:32:27 -05:00
Bo Turnbow 244802ed89 Make page.image url relative to site rather than absolute 2016-02-03 10:17:04 -07:00
Carlos Garcés f1e9b9acb1 Use seo_description instead of page.description
seo_description is used in  the meta tags but not in the ld+json
If page.description is not set, the the description at ld+json will be null.
2016-02-01 17:06:05 +01:00
Carlos Garcés 56c7f4e238 Fix HTML5 validation error
Removed itemprop from canonical url due html validation error
2016-01-30 21:50:45 +01:00
Pat Hawks c9b19c478d
Add default filter 2016-01-29 10:35:40 -08:00
Parker Moore 6dab82639e use the page.excerpt if the page.description doesn't exist 2016-01-25 14:29:48 -08:00
Ben Balter 9f0b656c1f Merge pull request #26 from benbalter/author
Allow author data as an object
2016-01-19 19:23:20 -05:00
Pat Hawks 66384741c3
Make <title> optional 2016-01-12 23:09:28 -08:00
Pat Hawks b8d9cc2932
Convert tabs to spaces 2016-01-12 14:15:22 -08:00
Pat Hawks 5638c19a5d
Allow author data as an object 2016-01-12 12:09:43 -08:00
Ben Balter 9f53718796 Merge pull request #21 from benbalter/entities
Do not escape smart quotes
2016-01-12 10:58:24 -05:00
Ben Balter 5c3d234417 Merge pull request #25 from benbalter/site_name
Use site.name if site.title is not present
2016-01-12 10:53:40 -05:00
Pat Hawks 99340a927f
Use site.name if site.title is not present 2016-01-11 17:30:26 -08:00
Pat Hawks fe4c5566fe
Do not escape characters 2016-01-11 13:50:15 -08:00
Pat Hawks 5672ec3991
Only process Liquid template once 2016-01-10 16:49:18 -08:00
Ben Balter 85934ae5de Bump to 0.1.4 2016-01-07 18:20:03 -05:00
Ben Balter e2eec18895 move version to its own file for easier bumping 2016-01-07 18:19:53 -05:00
Pat Hawks 7a55460f2c
Minify template just once 2016-01-06 12:29:14 -08:00
Pat Hawks fd06faf86c
Use baseurl to build seo_url 2016-01-06 10:00:20 -08:00
Pat Hawks b2099b70fd
Use prepend for URLs 2016-01-06 09:52:26 -08:00
Ben Balter 6115bb78e9 Merge pull request #11 from pathawks/og_title
og:title should not contain site.title
2016-01-06 10:40:27 -05:00
Ben Balter c4bac39745 Merge pull request #16 from pathawks/gsub
Combine two gsubs into one
2016-01-06 10:35:16 -05:00
Pat Hawks b6f096372d
Combine two gsubs into one 2016-01-05 22:08:27 -08:00
Pat Hawks 23e9b8ae21
Replace '/index.html' with '/' 2016-01-05 15:52:40 -08:00
Pat Hawks d5be8e7056
og:title should not contain site.title 2016-01-05 14:59:46 -08:00
Ben Balter 1ad8107a4e simplify whitespace regex 2015-11-25 15:26:57 -06:00
Ben Balter 1567a53d4e properly escape smart quotes in title and description 2015-11-25 15:23:59 -06:00
Ben Balter c255b5398d use escape 2015-11-25 12:55:12 -06:00
Ben Balter 1af5f6c357 properly escape quotes in titles and descriptions 2015-11-25 08:18:37 -05:00
Ben Balter 2969a521f5 output valid html 2015-10-31 14:05:19 -04:00
Ben Balter ad8e4a2262 include description when on the homepage 2015-10-25 17:25:43 -04:00
Ben Balter 0c2ca4e07a initial commit 2015-10-25 17:21:46 -04:00