Postmarks Revisited

Since my initial post on Postmarks, I made two minor changes to my bookmarking site:

  • I edited src/pages/layouts/main.hbs to eliminate the Login link from the header and the footer
  • I also removed the About link from the header
  • I moved the divider in the footer after the About link from outside the {{#if loggedIn}} to inside

This gives the site a slightly cleaner look I prefer.

Digging into the admin functionality a bit, I noticed the input textbox hid most of the JavaScript for the bookmarklet, so I replaced it with a readonly textarea and gave it the same id as the textbox I removed. This preserved the functionality while making all of the javascript visible. The bookmarklet itself works nicely, opening a pop-up that autofills the New Bookmark page with the URL, title, and description fields. When adding a bookmark, I forgot that multi-word tags weren’t allowed and got an error message like the one below:

invalid tags: tag must be in , tag name supports a-z, A-Z, 0-9 and the following word separators: -_.

When you get that error, the bookmark isn’t created. I updated line 11 of src/pages/partials/edit_bookmark.hbs to add the following reminder:

Remember: multi-word tags must be separated by dash (-) or underscore (_).

A nicer way to handle this might be to prevent the save attempt and allow the bookmarker to correct the bad tag. If I figure that out at some point and implement it, the new capability will be available for everyone who opts to remix my version of Postmarks.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.