You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
2.1 KiB

  1. <div class="narrow">
  2. <?= partial('partials/header') ?>
  3. <h2>Bookmark</h2>
  4. <img src="/images/bookmark-interface.png" style="max-width: 300px; float: right;">
  5. <p>The bookmark interface is for creating bookmark posts.</p>
  6. <h3>Bookmarklet</h3>
  7. <p>On the bookmark interface, you can drag a bookmarklet to your bookmarks toolbar. This will let you bookmark pages that you're viewing with a single click. You can select text in the page to include the selected text in the "content" of your bookmark post. The title of the page will be prefilled as the name of the bookmark post.</p>
  8. <h3>Post Properties</h3>
  9. <p>The following properties will be sent in the Micropub request. This request will be sent as a form-encoded request.</p>
  10. <p>The access token is sent in the Authorization HTTP header:</p>
  11. <pre>Authorization: Bearer XXXXXXXXX</pre>
  12. <ul>
  13. <li><code>h=entry</code> - This indicates that this is a request to create a new <a href="https://indieweb.org/h-entry">h-entry</a> post.</li>
  14. <li><code>bookmark-of</code> - This is the URL that you are bookmarking.</li>
  15. <li><code>name</code> - The name of the bookmark post, typically this is the same as the name of the page you are bookmarking. The Javascript bookmarklet will autofill this from the <code>&lt;title&gt;</code> tag of the page.</li>
  16. <li><code>content</code> - The text of the bookmark post. You can use this to add your own commentary, or post a quote from the page you're bookmarking. The bookmarklet will autofill this if you have text selected on the page.</li>
  17. <li><code>category[]</code> - This property will be repeated for each tag you've entered in the "tags" field.</li>
  18. <li><code>mp-syndicate-to[]</code> - Each syndication destination selected will be sent in this property. The values will be the <code>uid</code> that your endpoint returns. See <a href="/docs/syndication">Syndication</a> for more details. (If you are using an older Micropub endpoint that expects <code>syndicate-to</code>, you can customize this property in the settings.)</li>
  19. </ul>
  20. <hr>
  21. <p>Back to <a href="/docs/creating-posts">Creating Posts</a></p>
  22. </div>