Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add date-free slugs for posts as netlify _redirects #1

Open
cynthiahqy opened this issue Nov 7, 2022 · 3 comments
Open

add date-free slugs for posts as netlify _redirects #1

cynthiahqy opened this issue Nov 7, 2022 · 3 comments

Comments

@cynthiahqy
Copy link
Owner

Trying to automatically add redirects from (gallery/sketchnotes/2022-10-30_slug) to the short url (/gallery/slug)

Attempt 1:

Attempt 2: run a post-render script?

@cynthiahqy
Copy link
Owner Author

cynthiahqy commented Nov 7, 2022

cynthiahqy added a commit that referenced this issue Nov 7, 2022
cynthiahqy added a commit that referenced this issue Nov 7, 2022
@cynthiahqy
Copy link
Owner Author

How do I get a post-render script to run locally and not cause netlify build to fail? :( https://app.netlify.com/sites/cynthiahqy/deploys/6368fe3afee7ab0009d77aa6

@cynthiahqy
Copy link
Owner Author

cynthiahqy commented Nov 7, 2022

Probably try this -- but is it even worth it at this point???
https://quarto.org/docs/publishing/netlify.html#executing-code
https://github.com/quarto-dev/quarto-actions

cynthiahqy added a commit that referenced this issue Nov 8, 2022
- add file for manually specified http redirects
- add script to generate slug redirects
see issue #1
cynthiahqy added a commit that referenced this issue Nov 8, 2022
see issue #1, post-render script can't be run by netlify
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant