blogdown

Hugo post directory appearing on homepage, but not posts

旧巷老猫 提交于 2020-12-12 06:08:37
问题 For my blogdown-created website (using the Xmin theme), the posts directory - from which I can view individual posts - appears on the homepage, instead of individual posts. https://joshuamrosenberg.com/ This seemed to happen after updating to the lastest version of Hugo. The source for my website is here. I'm a bit puzzled about what to do: do you have any advice? 回答1: This is due to a breaking change in Hugo 0.57.0, and I have fixed the issue in the latest version of the XMin theme.

Embed iframe Amazon Associate Link into .md file R

妖精的绣舞 提交于 2020-08-24 04:07:52
问题 I'm trying to embed an Amazon Associate link into a post created using R blogdown and Hugo. It is a simple .md file. The Amazon Associate site is here. The code I am trying to post with my store-id is this: <iframe style="width:120px;height:240px;" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" src="//ws-na.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&OneJS=1&Operation=GetAdHtml&MarketPlace=US&source=ac&ref=qf_sp_asin_til&ad_type=product_link&tracking_id=hatro-20

Embed iframe Amazon Associate Link into .md file R

你。 提交于 2020-08-24 04:06:29
问题 I'm trying to embed an Amazon Associate link into a post created using R blogdown and Hugo. It is a simple .md file. The Amazon Associate site is here. The code I am trying to post with my store-id is this: <iframe style="width:120px;height:240px;" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" src="//ws-na.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&OneJS=1&Operation=GetAdHtml&MarketPlace=US&source=ac&ref=qf_sp_asin_til&ad_type=product_link&tracking_id=hatro-20

Can't escape LaTeX dollar sign `$` in blogdown

喜你入骨 提交于 2020-08-20 08:05:12
问题 1. An amount between $5 and $10. 2. An amount between \$5 and \$10. 3. An amount between \\$5 and \\$10. Please include the code chunk above in a blogdown .Rmd file, and make sure your Hugo theme supports LaTeX equations. Then Save and serve your site with blogdown::serve_site() . When I do this none of the three options shown above properly escape LaTeX's dollar sign $ . Here's what happens to me (and yes I did update all packages with update.packages(ask = FALSE, checkBuilt = TRUE) prior to

Pandoc rules regarding LaTeX not followed on R blogdown hugo themes

☆樱花仙子☆ 提交于 2020-07-22 05:52:17
问题 I can create a new blogdown site utilizing the default hugo-lithium theme and the text statement below will not render as a LaTeX equation, which is the behavior I expect. An amount between $5 and $10. Pandoc's manual explains the reason why, which I'll paste below with a bold emphasis: Anything between two $ characters will be treated as TeX math. The opening $ must have a non-space character immediately to its right, while the closing $ must have a non-space character immediately to its

Pandoc rules regarding LaTeX not followed on R blogdown hugo themes

冷暖自知 提交于 2020-07-22 05:52:00
问题 I can create a new blogdown site utilizing the default hugo-lithium theme and the text statement below will not render as a LaTeX equation, which is the behavior I expect. An amount between $5 and $10. Pandoc's manual explains the reason why, which I'll paste below with a bold emphasis: Anything between two $ characters will be treated as TeX math. The opening $ must have a non-space character immediately to its right, while the closing $ must have a non-space character immediately to its

Prevent re-knitting of old rmd files when publishing blogdown website on shared server

混江龙づ霸主 提交于 2020-07-22 05:22:08
问题 I read this post and the blogdown documentation, but I can't seem to find a relevant answer for my case. EDIT: I found this blog post describing a workaround using build_site(method="custom") . I needed to change a few things (from md to html in some parts, since the knitted final format is html in my case). It seems to work for simple Rmds, but fancy interactive plots requiring htmlwidgets don't render correctly. I recently switched from Wordpress to Hugo and I have a shared server for