-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Figure out cross-references #1
Comments
Does Hugo's cross-reference stuff help at all? https://gohugo.io/content-management/cross-references/ |
@maelle I don't think so, because we want RMarkdown cross-references. |
Need this in # Trick knitr into producing bookdown labels
knitr$opts_knit$bookdown.internal.label <- TRUE But is cross-linking worth it? Unlike bookdown, this only allows links within the current doc, which is primarily useful for floating figures, and the current syntax highlighting isn't designed for floating figures (since everything is wrapped in a Test file:
|
Probably off-topic because too centered on Hugo/html (and on rOpenSci website knitr plot hook) and because I'm assuming linking to figures might be useful even if they're not floating. Is hugodown plot hook outputting html? If it were outputting a Hugo figure shortcode or even the same figure html as what Hugo shortcode would produce (which has the benefit of having separate title, caption and alt text), the title part of that html could be used as a Markdown link. In Hugo academic there's a custom figure shortcode that includes an id HugoBlox/hugo-blox-builder#1475 |
hugodown produces html; I can make it produce whatever is needed, but this part of the code is already quite hacky so I'd prefer to avoid adding to it unless there is an existing compelling use case (i.e. you can point me to blog posts where you already use this technique). |
we use Hugo shortcode as a knitr plot hook (in some of the most recent posts, in the archetype https://github.com/ropensci/roweb2/blob/master/archetypes/Rmd/index.md -- called .md for use with Hugo/blogdown addin but it's Rmd), but not for the cross-reference aspect, it was because I couldn't think of another way to let post authors tweak image width/position, caption and alt text on a per chunk basis -- which minus the different caption/alt seems to already work with hugodown as is. So no compelling use case on the cross-reference aspect and I'll stop the off-topic commenting. 🙂 |
Also chiming in even though no one asked, I do not find the cross-references across posts important and have never used them in 3 years of using Hugo via blogdown. What I do like and use is:
|
FWIW I have a total of 3834 links between posts across the 735 pages of the site I manage (pace @apreshill ) and a total 54 links within a single post, so across two data points we have two different internal linking tendencies. Importance weighting these data points is left as an exercise 😉 |
From @jjallaire
The text was updated successfully, but these errors were encountered: