Up & running with blogdown in 2021 | Alison Hill #77
Replies: 72 comments
-
I was following up to this stage when I got errors. May you assist. I ran the stuff below and got errors. I am a novice in this area but will to learn so that I can create my own website. options(
# to automatically serve the site on RStudio startup, set this option to TRUE
blogdown.serve_site.startup = FALSE,
# to disable knitting Rmd files on save, set this option to FALSE
blogdown.knit.on_save = FALSE <- change
blogdown.author = "Alison Hill", <- add
blogdown.ext = ".Rmarkdown", <- add
blogdown.subdir = "post" <- add
) |
Beta Was this translation helpful? Give feedback.
-
Hi there, What version of the blogdown package are you using? Try And what happened when you ran this code just above that chunk?
|
Beta Was this translation helpful? Give feedback.
-
Dear Alison
Thank you very much. Let me try that.
Kind regards
|
Beta Was this translation helpful? Give feedback.
-
Thanks for this awesome tutorial. After reading this, I was finally able to get my site up and running on Netlify. One thing I got a little confused about was how to commit to Github. Other (I think outdated) tutorials I read emphasized the |
Beta Was this translation helpful? Give feedback.
-
Hi there! Yes, I mentioned this as an option where you can drag and drop |
Beta Was this translation helpful? Give feedback.
-
Thanks, I'll check it out.
…On Sun, 3 Jan 2021, 15:49 Alison Presmanes Hill, ***@***.***> wrote:
Hi there! Yes, I mentioned this as an option where you can drag and drop
public/ to Netlify (and linked to a webinar), but I don't recommend
committing the public directory to GitHub for publishing.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#44 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADCPPR3TVUN57EXRBDYRI3DSYBYXBANCNFSM4VREKI4A>
.
|
Beta Was this translation helpful? Give feedback.
-
Really enjoying your tutorial! I have made a lot of progress on my new website and and learning a lot as I go. I ran into one issue I have not been able to resolve on my own. When I run
I added the items to the ignoreFiles setting, following the pattern, and saved the config.yaml file:
When I rerun |
Beta Was this translation helpful? Give feedback.
-
@phillospadix the filename patterns given by Thank you Alison! Fantastic resource! |
Beta Was this translation helpful? Give feedback.
-
thank you @phyllospadix and @akseong - I filed an issue on the blogdown repo to fix this bug! |
Beta Was this translation helpful? Give feedback.
-
@phyllospadix You have to either follow the instruction in the message exactly and use double quotes, or use single backslashes before - "\\.knit\\.md$" or - \.knit\.md$ is good, but @akseong The syntax for character arrays is the same for TOML and YAML when you quote the strings (YAML allows no quotes, but TOML does not). |
Beta Was this translation helpful? Give feedback.
-
Thanks : @apreshill, @akseong and @yihue ! That cleared the TODO bullet! |
Beta Was this translation helpful? Give feedback.
-
that's thanks to @yuihui too (sorry for typo) |
Beta Was this translation helpful? Give feedback.
-
I loved the tutorial. I'm following your workflow, but got hung up at the stage of pushing the content and themes directories to GitHub. Everything else was transferred easily. However, for both of these directories, an index.lock file appears in the .git subdirectory and everything in RStudio freezes. I need to shut down RStudio and then reopen it (new session doesn't work) and use the terminal to remove the offending file with the "rm -f .git/index.lock" command recommended in Stack Overflow. Is there anything different from the other directories about these directories. All the various blogdown checks have been done and all recommendations implemented (although none appear to have much to do with this freeze). Any advice? Thanks, Jim Hunter |
Beta Was this translation helpful? Give feedback.
-
Hi @jameshunterbr - I haven't seen this before! I would probably try installing the dev version of rmarkdown:
And re-installing the dev version of blogdown:
Be sure to restart your R session before coming back to your project, and try serving site again. If that doesn't work, can you post to the RStudio community forum? The link is here: https://github.com/rstudio/blogdown/issues/new/choose |
Beta Was this translation helpful? Give feedback.
-
Thanks, Alison. I'm moving the problem over to the rstudio community forum: https://community.rstudio.com/t/92511 |
Beta Was this translation helpful? Give feedback.
-
Yes, there seems to be an issue with academic, I tried for a while to work through it but still can't get it to work, I did however have success with: blogdown::new_site(theme = "lxndrblz/anatole") |
Beta Was this translation helpful? Give feedback.
-
This is an excellent blog....however as a newbie to r markdown, it would have been good for a small explanation of what 'knitting' is. I'm still not sure if I understand what it does. |
Beta Was this translation helpful? Give feedback.
-
Hi @juniperover @tehillamo @sammo3182 @sleeds50 @ARMurray - This has been fixed by the amazing @yihui in the development version of the blogdown package: https://pkgs.rstudio.com/blogdown/news/index.html#changes-in-blogdown-version-1-4-unreleased Please try:
|
Beta Was this translation helpful? Give feedback.
-
Any guidance on getting DT::datatable() to work in Hugo / wowchemy? I am having the same issue described here, with only the header row showing. I saw but did not understand how to implement your workaround. Thanks for any help! |
Beta Was this translation helpful? Give feedback.
-
Thank you for the information, but as Yihui suggested, I will give Apero a try! Amazing project, Alison @apreshill . Thank you!❤ |
Beta Was this translation helpful? Give feedback.
-
Hi Alison - What a great tutorial! |
Beta Was this translation helpful? Give feedback.
-
Hi Allison,
It seems like Yihui's comment entails that blogdown won't be supporting the
Hugo Academic theme for much longer. How will this affect existing Hugo
Academic users? Will we be able to continue to update our sites? Is there a
strong and immediate need to switch over to the Apero theme? When we make a
switch, will we basically have to redo everything? It has been such a huge
investment to get my Hugo Academic themed site up and running and I am
feeling wary about having to make a bunch more investments to learn a new
theme, redesign my site, etc.
Thanks,
…On Wed, Jul 28, 2021 at 3:52 AM Yue Hu ***@***.***> wrote:
Thank you for the information, but as Yihui suggested
<rstudio/blogdown#638 (comment)>,
I will give Apero a try! Amazing project, Alison @apreshill
<https://github.com/apreshill> . Thank you!❤
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#44 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AO53QYXC57SPRWRCQ44LHNLTZ6ZM7ANCNFSM4VREKI4A>
.
--
Emmanuel Teitelbaum, Associate Professor
Department of Political Science and
The Elliott School for International Affairs
George Washington University
Managing Editor, Journal of Development Studies
<http://www.tandfonline.com/toc/fjds20/current>
Phone: (202) 994-9125
Website: http://emmanuelteitelbaum.com
Office Hours: Wednesdays, 1:00 p.m. - 3:00 p.m.
<https://calendly.com/emmanuel-teitelbaum>
Zoom: https://gwu-edu.zoom.us/my/emmanuel.teitelbaum
|
Beta Was this translation helpful? Give feedback.
-
P.S. I scrolled up the thread and found that you had basically already
answered my question:
"I know though that it feels not great to be told that you need to consider
switching themes after investing lots of time, energy, and material
development into the Hugo Academic theme. But this is where we sit now.
We'll work to see if we can make it user-friendly again, but at the end of
the day, these are ultimately decisions made by individual Hugo theme
authors."
Yeah, it does feel not great, but at least I have a bit more of an
understanding of what is going on. Thanks.
On Thu, Aug 26, 2021 at 8:29 PM Emmanuel Teitelbaum <
***@***.***> wrote:
… Hi Allison,
It seems like Yihui's comment entails that blogdown won't be supporting
the Hugo Academic theme for much longer. How will this affect existing Hugo
Academic users? Will we be able to continue to update our sites? Is there a
strong and immediate need to switch over to the Apero theme? When we make a
switch, will we basically have to redo everything? It has been such a huge
investment to get my Hugo Academic themed site up and running and I am
feeling wary about having to make a bunch more investments to learn a new
theme, redesign my site, etc.
Thanks,
On Wed, Jul 28, 2021 at 3:52 AM Yue Hu ***@***.***> wrote:
> Thank you for the information, but as Yihui suggested
> <rstudio/blogdown#638 (comment)>,
> I will give Apero a try! Amazing project, Alison @apreshill
> <https://github.com/apreshill> . Thank you!❤
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <#44 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AO53QYXC57SPRWRCQ44LHNLTZ6ZM7ANCNFSM4VREKI4A>
> .
>
--
Emmanuel Teitelbaum, Associate Professor
Department of Political Science and
The Elliott School for International Affairs
George Washington University
Managing Editor, Journal of Development Studies
<http://www.tandfonline.com/toc/fjds20/current>
Phone: (202) 994-9125
Website: http://emmanuelteitelbaum.com
Office Hours: Wednesdays, 1:00 p.m. - 3:00 p.m.
<https://calendly.com/emmanuel-teitelbaum>
Zoom: https://gwu-edu.zoom.us/my/emmanuel.teitelbaum
--
Emmanuel Teitelbaum, Associate Professor
Department of Political Science and
The Elliott School for International Affairs
George Washington University
Managing Editor, Journal of Development Studies
<http://www.tandfonline.com/toc/fjds20/current>
Phone: (202) 994-9125
Website: http://emmanuelteitelbaum.com
Office Hours: Wednesdays, 1:00 p.m. - 3:00 p.m.
<https://calendly.com/emmanuel-teitelbaum>
Zoom: https://gwu-edu.zoom.us/my/emmanuel.teitelbaum
|
Beta Was this translation helpful? Give feedback.
-
@eteitelbaum I can't say for sure. It depends how hard it is to follow the development of this theme. It was hard for us at times, but we figured out solutions each time. I just don't know how much longer we can enjoy the current peace. That said, if you are using the academic theme, I strongly recommend that:
Then you can pretty much enjoy the peace forever. Most of the time, the problem arises because people use or update to the very latest version of the theme. If you have an older version that works well, I'd recommend that you just stick to it. |
Beta Was this translation helpful? Give feedback.
-
Any chance you might point me in the currently preferred direction for handling htmlwidgets, such as a data table, with the new blogdown / wowchemy / netlify structure? widgetframe was a particularly easy solution but it doesn't seem to be working. |
Beta Was this translation helpful? Give feedback.
-
Many thanks for this amazingly helpful blog post. I have a question regarding the image scoping, I would appreciate it if you can shed some light. Wowchemy tutorial says the images can be placed under My question has to do with the difference in scoping when I'm referring to an image in the Let the image paths be:
When I try to insert an image to the post body only
|
Beta Was this translation helpful? Give feedback.
-
When converting some of my old posts to the new Hugo Apero theme I noticed that .Rmd files are rendered directly to .html files and thus any Apero theme specific setting (eg. comments, TOC) are not rendered. Converting the files to .Rmarkdown solved the issue. Just putting it here in case somebody runs into the same issue. |
Beta Was this translation helpful? Give feedback.
-
Hi Alison! First, thanks a lot for this brilliant theme! I am having fun exploring it and building up my site. My issue is that I am unable to get the "On this page" section to show up in my sidebar. This post of yours is a non-series post with a sidebar layout, so I looked at your various YAMLs and copied the same to my blog post. Even though the small link icon appears beside each of my headings in the body, the "table of contents" of sorts doesn't appear in my sidebar. I couldn't find a particular attribute to specify this in your code. In the YAML for your Quarto post I noticed you'd specified the text for this heading ("On this page"), but I still didn't see anything to turn it on/off. What am I missing here? My GitHub page is here. |
Beta Was this translation helpful? Give feedback.
-
Hi, just here to confirm the following theme is not supported, correct? Tried starter-academic as well to no avail. R version 4.1.0 (2021-05-18) -- "Camp Pontanezen"
|
Beta Was this translation helpful? Give feedback.
-
@bayeslearner Please see rstudio/blogdown#722 (comment). |
Beta Was this translation helpful? Give feedback.
-
Up & running with blogdown in 2021 | Alison Hill
New year, new blogdown! A guide to getting up and running with blogdown, the Hugo Wowchemy starter-academic theme, GitHub, and Netlify. Not brief.
https://alison.rbind.io/post/new-year-new-blogdown/
Beta Was this translation helpful? Give feedback.
All reactions