rstudio / blogdown

Create Blogs and Websites with R Markdown
https://pkgs.rstudio.com/blogdown/
1.74k stars 331 forks source link

"404 NOT FOUND" For Blog Posts #699

Closed amarakon closed 2 years ago

amarakon commented 2 years ago

I have my website source code at https://github.com/Amarakon55/amarakon.com. The website is published through the docs/ directory. The website URL is currently https://amarakon55.github.io/amarakon.com. I have a blog post titled "Test Post" which I can view by running blogdown::serve_site() to preview the site. However, my actual website can't view the post. Try it. It is also built fine so that is not the issue.

Here is the output of xfun::session_info('blogdown'):

> xfun::session_info('blogdown')
R version 4.1.2 (2021-11-01)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Gentoo Linux

Locale:
  LC_CTYPE=en_CA.utf8       LC_NUMERIC=C             
  LC_TIME=en_CA.utf8        LC_COLLATE=en_CA.utf8    
  LC_MONETARY=en_CA.utf8    LC_MESSAGES=C            
  LC_PAPER=en_CA.utf8       LC_NAME=C                
  LC_ADDRESS=C              LC_TELEPHONE=C           
  LC_MEASUREMENT=en_CA.utf8 LC_IDENTIFICATION=C      

Package version:
  base64enc_0.1.3  blogdown_1.9     bookdown_0.26    bslib_0.3.1     
  digest_0.6.29    evaluate_0.15    fastmap_1.1.0    fs_1.5.2        
  glue_1.6.2       graphics_4.1.2   grDevices_4.1.2  highr_0.9       
  htmltools_0.5.2  httpuv_1.6.5     jquerylib_0.1.4  jsonlite_1.8.0  
  knitr_1.39       later_1.3.0      magrittr_2.0.3   methods_4.1.2   
  mime_0.12        promises_1.2.0.1 R6_2.5.1         rappdirs_0.3.3  
  Rcpp_1.0.8.3     rlang_1.0.2      rmarkdown_2.14   sass_0.4.1      
  servr_0.24       stats_4.1.2      stringi_1.7.6    stringr_1.4.0   
  tinytex_0.38     tools_4.1.2      utils_4.1.2      xfun_0.30       
  yaml_2.3.5      

Hugo version: 0.97.1
> 
> 

Here is the output of blogdown::check_site():

> blogdown::check_site()
― Running a series of automated checks for your blogdown website project...
○ A successful check looks like this.
● [TODO] A check that needs your attention looks like this.
| Let's check out your blogdown site!
― Checking config.toml
| Checking "baseURL" setting for Hugo...
○ Found baseURL = "https://amarakon55.github.io/amarakon.com/"; nothing to do here!
| Checking "ignoreFiles" setting for Hugo...
● [TODO] Set "ignoreFiles" to ["\\.Rmd$", "\\.Rmarkdown$", "_cache$"]
| Checking setting for Hugo's Markdown renderer...
○ All set! Found the "unsafe" setting for goldmark.
― Check complete: config.toml

― Checking .gitignore
● [TODO] .gitignore was not found. You may want to add this.
― Checking Hugo
| Checking Hugo version...
○ Found Hugo. You are using Hugo 0.97.1.
| Checking .Rprofile for Hugo version used by blogdown...
○ blogdown is using Hugo 0.97.1 to build site locally.
― Check complete: Hugo

― Checking netlify.toml...
○ Found HUGO_VERSION = 0.97.1 in [build] context of netlify.toml.
| Checking that remote & local Hugo versions match...
○ It's a match! Local and remote Hugo versions are identical (0.97.1).
| Checking that Netlify & local Hugo publish directories match...
○ Good to go - blogdown and Netlify are using the same publish directory: public
― Check complete: netlify.toml

― Checking content files
| Checking for validity of YAML metadata in posts...
○ All YAML metadata appears to be syntactically valid.
| Checking for previewed content that will not be published...
○ Found 0 files with future publish dates.
○ Found 0 files marked as drafts.
| Checking your R Markdown content...
○ All R Markdown files have been knitted.
○ All R Markdown output files are up to date with their source files.
| Checking for .html/.md files to clean up...
○ Found 0 duplicate .html output files.
○ Found 0 incompatible .html files to clean up.
| Checking for the unnecessary 'content/' directory in theme...
○ Great! Your theme does not contain the content/ directory.
― Check complete: Content

> 
> 
amarakon commented 2 years ago

Huh, after a while now it works. Weird.