cynthiahqy / digital-garden

My personal website. Built using Quarto website:blog template.
https://cynthiahqy.com
10 stars 1 forks source link

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

Open cynthiahqy opened 2 years ago

cynthiahqy commented 2 years ago

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 commented 2 years ago

Existing _redirects contains rules written using HTTP syntax -- https://docs.netlify.com/routing/redirects/redirect-options/ https://docs.netlify.com/routing/redirects/#rule-processing-order

cynthiahqy commented 2 years ago

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 commented 2 years ago

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