### Bug description

# Problem description
I am trying to include an RSS feed for my blog listing. This works all fine with the blog setup that you get when you create a new quarto blog from within RStudio. But it breaks if I tweak the landing page. Then, I get

```
## Error 1

ERROR: PermissionDenied: Zugriff verweigert (os error 5), rename 'C:\Users\Alber\Desktop\feed-test\site_libs' -> 'C:\Users\Alber\Desktop\feed-test\_site\site_libs'

## Error 2

PermissionDenied: Zugriff verweigert (os error 5), stat 'C:\Users\Alber\Desktop\feed-test\_site\blog.feed-full-staged'
```

Note that I have tried operating with admin rights but that did not help. Let me describe a minimal example.

# Minimal example that works

Create new quarto blog via RStudio. Then modify `index.qmd` and `_quarto.yml` as described in [Quarto docs](https://quarto.org/docs/websites/website-blog.html#rss-feed) to include an RSS feed.

### index.qmd

```
---
title: "feed-test"
listing:
  contents: posts
  sort: "date desc"
  type: default
  categories: true
  feed: true
page-layout: full
title-block-banner: true
`---`
```

### _quarto.yml 

```
project:
  type: website

website:
  title: "feed-test"
  site-url: https://www.myblogexample.io
  description: 'Great blog'
  navbar:
    right:
      - blog.qmd
      - icon: github
        href: https://github.com/
      - icon: twitter
        href: https://twitter.com
      - icon: rss
        href: blog.xml 
format:
  html:
    theme: cosmo
    css: styles.css

editor: visual

``
``` 

# Changes that break the blog

Now, I want my blog to have a landing page that is different from the blog listing. So, I renamed

* `index.qmd` > `blog.qmd`
* `about.qmd` > `index.qmd`

This causes `blog.qmd` to not render anymore with one of the above error. Sometimes it renders without a problem but accessing `blog.html` then errors out with the second error (above).

# System Information

### OS

I am using Windows 10 

### R

```
R version 4.2.0 (2022-04-22 ucrt) -- "Vigorous Calisthenics"
Copyright (C) 2022 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)
```

### RStudio

```
RStudio
2022.02.3 Build 492
© 2009-2022 RStudio, PBC
"Prairie Trillium" Release (1db809b8, 2022-05-20) for Windows
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.12.8 Chrome/69.0.3497.128 Safari/537.36
```

### Quarto

```
      Version: 0.9.566
      Path: C:\Users\Alber\AppData\Local\Programs\Quarto\bin\
      CodePage: 1252

[>] Checking basic markdown render....OK

[>] Checking Python 3 installation....OK
      Version: 3.8.2
      Path: C:/Users/Alber/AppData/Local/Programs/Python/Python38/python.exe
      Jupyter: (None)

      Jupyter is not available in this Python installation.
      Install with py -m pip install jupyter

[>] Checking R installation...........OK
      Version: 4.0.3
      Path: C:/PROGRA~1/R/R-40~1.3
      LibPaths:
        - C:/Users/Alber/Documents/R/win-library/4.0
        - C:/Program Files/R/R-4.0.3/library
      rmarkdown: 2.13

[>] Checking Knitr engine render......OK
```

### Checklist

- [X] [formatted your issue](https://yihui.org/issue/#please-format-your-issue-correctly) so it is easier for us to read?
- [X] included a minimal, self-contained, and reproducible example?
- [X] documented the quarto version you're running, by providing the output produced by `quarto check` in a terminal in your issue?
- [X] documented the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [X] documented which operating system you're running? If on Linux, please provide the specific distribution as well.
- [X] upgraded to the latest version, including your versions of R, the RStudio IDE, and relevant R packages?
dragonstyle
2022-06-11T13:04:45Z
AlbertRapp
bug
v1.2
closed
Access denied with RSS-feed when blog listing is not index.html
https://github.com/quarto-dev/quarto-cli/issues/1131