-
|
Hello, I'm trying to get the {
"NetlifyRedirects": "true"
}but my deployment to Netlify doesn't appear to include the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
What that part of the docs is telling you is that Statiq will look for properties on specific documents, and it will create redirects (either in the form of pages with metadata redirects, or by creating a You can see these examples of what I am referring to in the Chocolatey docs repository: https://github.com/chocolatey/docs/search?q=RedirectFrom Each one of these attributes results in a redirect page being created in the output folder when we build the site. As an example, go into the Run the build, and a new So, in order to get the content that you want in the _redirects file, we need to add a RedirectFrom attribute in the document that the root of the rss is currently being created from. However, this is an index.yaml file: https://github.com/corbob/coryknox.dev/blob/master/input/blog/rss/index.yaml And when I tried adding the RedirectFrom attribute to here, it didn't work. We would need @daveaglick to chime in here with what needs to be done here to make this work. |
Beta Was this translation helpful? Give feedback.

What that part of the docs is telling you is that Statiq will look for properties on specific documents, and it will create redirects (either in the form of pages with metadata redirects, or by creating a
_redirectsfile for you automatically, when theNetlifyRedirectsis set.You can see these examples of what I am referring to in the Chocolatey docs repository:
https://github.com/chocolatey/docs/search?q=RedirectFrom
Each one of these attributes results in a redirect page being created in the output folder when we build the site.
As an example, go into the
about.mdfile in your repository, and add the following:Run the build, and a new
_redirectsfile will be create…