Comments (9)
There is no documentation yet, but this is a solved problem. To publish a website, you need blogdown::build_site()
, and the .xml files will be post-processed.
from blogdown.
Thanks, I see that now. One thing it would be useful to have in the documentation is it's important to stop any daemonized server first (via servr::daemon_stop()
) - I've got used to having the website served locally in the background and then running build_site(local = FALSE)
still seems to build as if local = TRUE
.
Unfortunately I still have an issue though, when using build_site()
the links are missing a "/", e.g. I get http://forwards.github.io/blog/2017/01/13/mapping-usersfigures/unnamed-chunk-2-1.png
where I should have http://forwards.github.io/blog/2017/01/13/mapping-users/figures/unnamed-chunk-2-1.png
so the links are still broken in the .xml files.
from blogdown.
I encountered the same problem with displaying images in username.github.io. It seems that the problem still exists up to now.
from blogdown.
@hturner That is a good suggestion for the documentation, and actually I guess I can provide a fix to avoid rebuilding the site after you run build_site()
. I'll fix the missing slash issue, too.
@weiqiwang15 Do you have an example on Github? I saw your repo https://github.com/weiqiwang15/weiqiwang15.github.io but it does not appear to be a Hugo website (looks like Jekyll instead); blogdown only supports Hugo at the moment. To create a new website, please follow the instructions in README: https://github.com/rstudio/blogdown
from blogdown.
Thank you for your reply. I couldn't resolve the problem so I switched back to the Jekyll solution. I'll create a new repo and try to replicate the problem. Thanks.
from blogdown.
I used two repos (blog_source and wangweiqi15.github.io) to store the files as you suggested in this post.
I have little experience with html so I'm not sure if the screenshots below are where the problem lies. Hopefully it can give you some clue. Thanks.
In blog_source/blogdown/post/2015-07-23-r-rmarkdown.html
In wangweiqi15.github.io/2015/07/23/hello-r-markdown/index.html
Figure in blog post can't display correctly.
from blogdown.
@hturner The missing slash was due to your configuration, and I just submitted a PR to fix it forwards/website_source#1
@wangweiqi15 Your issue has been fixed. Please reinstall blogdown:
devtools::install_github('rstudio/blogdown')
from blogdown.
Working like a charm now! Thank you!!
from blogdown.
Ah, so simple! Thanks very much!
from blogdown.
Related Issues (20)
- Issue with site formatting with blogdown::build_site(). HOT 3
- Unable to serve site after updates HOT 6
- modelDown::modelDown() deleted all files in my output folder??!! HOT 1
- Home directory does not exist in HUGO academic-theme HOT 1
- Upkeep for blogdown
- Rmd files rendering with formatting issues HOT 7
- blogdown:::new_post_addin() should check for hugo first HOT 1
- Blogdown donβt supports multiple-column rmarkdown HOT 8
- Unable to create new posts HOT 2
- Missing website menu bar buttons when using blogdown to render web pages HOT 3
- Wrong relative links on the pkgdown site HOT 2
- allow use of hugo.toml for config [FR] HOT 3
- Error building site with hugo-apero theme HOT 5
- Build site with updated Hugo HOT 2
- shortcode doesn't display with leaflet map in the same post HOT 4
- Rmd - interactive map with tmap does not display HOT 5
- trialblogdown HOT 1
- Blogdown starting error and rmd render not working HOT 1
- unable to embed Rmd file in html output HOT 1
- [FR] informative message for missing Hugo HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blogdown.