Skip to content
This repository has been archived by the owner on Sep 23, 2022. It is now read-only.

Blog: allow for "this post has been removed" #77

Open
ryanmacklin opened this issue Jun 13, 2021 · 4 comments
Open

Blog: allow for "this post has been removed" #77

ryanmacklin opened this issue Jun 13, 2021 · 4 comments
Assignees
Labels
blog enhancement New feature or request

Comments

@ryanmacklin
Copy link
Contributor

Is your feature request related to a problem? Please describe.
To make sure we cover our bases, we can have a "this post has been removed" flag that renders a post differently

Describe the solution you'd like
We can have a simple flag with a removal notice, with a removal date and some boilerplate text. Text isn't set yet, and may need to be variable (but not lengthy). Said rendering doesn't have an author line or copyright line, or anything like that, just a notice.

We should be able to preserve for our benefit the original article copy, so if needed we can un-remove it by editing that flag. (Maybe we delete it from the file anyway, but that's something we can decide on case-by-case rather than have required by the tech)

Describe alternatives you've considered
Just deleting and letting a URL 404, or editing the article's contents manually (and making sure the license line and author area else stays blank)

Additional context
None

@ryanmacklin
Copy link
Contributor Author

Removal should list date of removal

@ryanmacklin
Copy link
Contributor Author

Said pages should also not render in postbox pages--blog landing page and author pages

@bwklein bwklein added the blog label Nov 9, 2021
@bwklein bwklein self-assigned this Feb 23, 2022
@bwklein
Copy link
Member

bwklein commented Feb 23, 2022

If we set a post frontmatter field draft: true or just delete the file, the post will not be on our public site anymore.

Is there a reason to keep the post content and have it show up on the site in lists, or it's own page with a notice that it has been removed? (I assume this is to give a landing place, better than a 404 for people coming from a link outside of our site.)

We could also make a single landing page on the site that we can redirect a 'removed' post to. We could then just add that post URL to a list of redirects in the netlify.toml config file for the server.

@bwklein
Copy link
Member

bwklein commented Mar 24, 2022

@ryanmacklin do you have a preference? ^

@bwklein bwklein added the enhancement New feature or request label Apr 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
blog enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants