0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00
ghost/core/server
Rishabh Garg c2aa62083c Added support for bookmark card (#11024)
requires https://github.com/TryGhost/Ghost-Admin/pull/1293

- updates `oembed` endpoint behaviour
  - if an oembed provider is not found then we use `metascraper` to populate a metadata object
  - when metadata is returned rather than an oembed response the payload will look like this:
    ```json
    {
        "url": "...",
        "type": "bookmark",
        "metadata": {
            "url": "...",
            "title": "...",
            "description": "...",
            "author": "...",
            "publisher": "...",
            "thumbnail": "...",
            "icon": "..."
        }
    }
    ```
- adds a `bookmark` card which generates output for the bookmark card:
  ```html
  <figure class="kg-card kg-bookmark-card">
    <a href="[URL]" class="kg-bookmark-container">
      <div class="kg-bookmark-content">
        <div class="kg-bookmark-title">[TITLE]</div>
        <div class="kg-bookmark-description">[DESCRIPTION]</div>
        <div class="kg-bookmark-metadata">
          <img src="[ICON]" class="kg-bookmark-icon">
          <span class="kg-bookmark-author">[AUTHOR]</span>
          <span class="kg-bookmark-publisher">[PUBLISHER]</span>
        </div>
      </div>
      <div class="kg-bookmark-thumbnail">
        <img src="[THUMBNAIL]">
      </div>
    </a>
  </figure>
  ```
  - if a particular bit of data does not exist then the associated html element will not be present
2019-08-27 15:01:02 +01:00
..
adapters Standardised require call to use relative path 2019-08-15 11:57:45 +08:00
api Added support for bookmark card (#11024) 2019-08-27 15:01:02 +01:00
config 💡 Added canary api endpoint 2019-08-09 20:46:49 +05:30
data Fixed "Unable to update nested relation" errors when rolling back migrations 2019-08-20 11:20:52 +01:00
lib Added support for bookmark card (#11024) 2019-08-27 15:01:02 +01:00
models Revert "Removed defaultColumnsToFetch from models (#11010)" (#11045) 2019-08-21 23:56:35 +05:30
public Update default 404 page 2019-07-15 14:47:01 +02:00
services 🐛 Fixed blog setup crashing for falsy email config (#11041) 2019-08-20 15:43:43 +05:30
translations 🐛Fixed generic 500 for bad key param in content API (#10977) 2019-08-12 12:56:09 +01:00
views Update default 404 page 2019-07-15 14:47:01 +02:00
web Updated canary actions endpoint 2019-08-14 17:40:36 +08:00
analytics-events.js Added event to integrations when created (#10588) 2019-03-11 15:28:17 +01:00
ghost-server.js Update Test & linting packages (major) (#10858) 2019-07-05 13:40:43 +02:00
index.js Extracted settings service part manipulating routes.yaml (#10800) 2019-06-25 18:33:56 +02:00
overrides.js
update-check.js Updated links to docs (#10941) 2019-07-22 18:17:50 +08:00