0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00
ghost/core/test/unit/metadata
Katharina Irrgang 7845617607 Custom Post Excerpt Feature (#8792)
closes #8793

- 1.3 post excerpt migration
  - add 1.3 migration to add `excerpt` to post schema

NOTE:
    - knex-migrator relies on the package.json safe version
    - so right now Ghost is on 1.2
    - the migration script is for 1.3
    - if you pull down the PR (or if we merge this PR into master), you have to run `knex-migrator migrate --v 1.3 --force`
    - knex-migrator will tell you what you have todo

- Bump dependencies
  - knex-migrator@2.1.3
- Soft limit for custom_excerpt
- Extended {{excerpt}} to use custom excerpt
   - when a `custom_excerpt` field exists, the `{{excerpt}}` helper will output this and fall back to autogenerated excerpt if not.
- Refactored behaviour of (meta) description
   - html tag `<meta name="description" />` for posts, tags and author doesn't get rendered if not provided.
        - fallback for `author.bio` removed
        - fallback for `tag.description` removed
   - structured data and schema.org for `post` context takes the following order to render description fields:
        1. custom excerpt
        2. meta description
        3. automated excerpt (50 words)
    - updated and added tests to reflect the changes
2017-08-01 12:39:34 +04:00
..
amp_url_spec.js 🔥 remove posts.markdown field (#8497) 2017-05-31 16:46:29 +02:00
asset_url_spec.js 🐛 Blog icon improvements (#8298) 2017-04-10 12:04:46 +01:00
author_fb_url_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
author_image_spec.js 🙀 Image field naming & new img_url helper (#8364) 2017-04-24 18:21:47 +01:00
author_url_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
blog_logo_spec.js 🙇 Blog icon utils and publisher.logo for JSON-LD (#8297) 2017-04-11 18:32:06 +02:00
canonical_url_spec.js 🔥 remove posts.markdown field (#8497) 2017-05-31 16:46:29 +02:00
context_object_spec.js 🙀 Image field naming & new img_url helper (#8364) 2017-04-24 18:21:47 +01:00
cover_image_spec.js 🙀 Image field naming & new img_url helper (#8364) 2017-04-24 18:21:47 +01:00
creator_url_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
description_spec.js Custom Post Excerpt Feature (#8792) 2017-08-01 12:39:34 +04:00
excerpt_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
image-dimensions_spec.js 🙇 Blog icon utils and publisher.logo for JSON-LD (#8297) 2017-04-11 18:32:06 +02:00
keywords_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
modified_date_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
og_type_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
paginated_url_spec.js 🎨 🚑 do not use testurl.com in tests (#8254) 2017-04-03 16:29:36 +01:00
published_date_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
rss_url_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
schema_spec.js Custom Post Excerpt Feature (#8792) 2017-08-01 12:39:34 +04:00
structured_data_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
title_spec.js 🎨 Improved SEO meta titles for paginated archives (#8785) 2017-07-31 13:13:06 +04:00
url_spec.js 🔥 remove posts.markdown field (#8497) 2017-05-31 16:46:29 +02:00