Skip to content
This repository has been archived by the owner. It is now read-only.

Many blog improvements #2

Merged
merged 1 commit into from Jun 3, 2016

Conversation

Projects
None yet
1 participant
@kirsle
Copy link
Owner

kirsle commented Jun 3, 2016

This adds many long-needed updates to the blogging platform in Rophako:

Draft and Private Posts

  • Adds support for "Draft" posts. These are similar to Private posts (in that you must be logged in to see them), except they're also hidden from all of the normal blog routes. The only way to see them is to use the new Drafts route (/blog/drafts).
  • Improves support for Private posts. Similarly to the new /blog/drafts there is a /blog/private route that shows only private posts, so you can see them all in one place. This route can only be accessed by a logged-in user.
  • Blog posts now receive little "tags" on their author/timestamp lines indicating their status: Private, Draft, Sticky or any combination. These tags are styleable via CSS with class attributes like blog-entry-private, blog-entry-draft and blog-entry-sticky
  • Blog posts in the Draft or Private category have a footer link that goes to the "view all drafts/private" post routes.
  • The new routes for draft/private posts are linked to from the admin control center.

Sticky Posts

  • Finishes implementation of "Sticky" posts. A checkbox has been added to the blog update page to mark a post as sticky. Sticky posts are always inserted at the very top of the index lists for the blog. Users can navigate to older pages just the same (e.g. sticky posts only insert themselves at the top of Page 1, pushing any other posts down). Many sticky posts are supported, and sticky posts can also be private or drafts.

Blog Create/Edit Pages

  • Removes the ability to enter a date/time on the blog update page. This caused confusion between web browser vs. server time zones. Instead, the server always picks the latest UTC epoch time for new entries. When editing an existing entry, there is a checkbox to re-set its time stamp upon saving, in case you want to bump a post to be newer.

Misc Bug Fixes

  • Fixed an off-by-one error in the pagination where you could see an "Older posts" link that yields no additional posts.
  • Fixed the "Newer posts" link not appearing when there are no older posts (e.g. when you're on the final page of posts).

@kirsle kirsle merged commit 646620f into master Jun 3, 2016

@kirsle kirsle deleted the feature/blog-drafts-and-privacy branch Jun 3, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.