In the Hugo docs, I see footnoteReturnLinkContents: "↩"
a fair bit. Unfortunately, it’s not a particularly good suggestion because some OSs like Windows and iOS will render that particular character with emoji presentation, as ↩️
. (To force emoji presentation here, I/macOS appended variation selector 16 after U+21A9.)
A few minutes ago, I thought it’d be a good idea to have the default be “\u21a9\ufe0e” instead of “↩︎
” so Hugo users don’t need to look up the obscure topic of variation selectors. However, when I made a new Hugo site just now with a default configuration file, the default link contents (""
in Hugo code) is <sup>[return]</sup>
. This would be a larger change than I expected.
Still, with U+21A9 LEFTWARDS ARROW WITH HOOK as a fairly popular return character, shouldn’t we join Pandoc in automatically suppressing emoji presentation by default? The following one-line change does it, even though we/I ought to change the docs to match:
diff --git a/hugolib/config.go b/hugolib/config.go
index 50e4ca6e..9c57ba24 100644
--- a/hugolib/config.go
+++ b/hugolib/config.go
@@ -613,7 +613,7 @@ func loadDefaultSettingsFor(v *viper.Viper) error {
v.SetDefault("pluralizeListTitles", true)
v.SetDefault("forceSyncStatic", false)
v.SetDefault("footnoteAnchorPrefix", "")
- v.SetDefault("footnoteReturnLinkContents", "")
+ v.SetDefault("footnoteReturnLinkContents", "\u21a9\ufe0e")
v.SetDefault("newContentEditor", "")
v.SetDefault("paginate", 10)
v.SetDefault("paginatePath", "page")
Edit: I just noticed that Discourse itself mangled the emoji and LEFTWARDS ARROW WITH HOOK because it assumes, reasonably enough, that most people want emoji presentation for that character. If my meaning’s still unclear despite Discourse mangling my post I’ll be happy to clarify.
Second edit: maiki fixed the autoemojification problems mentioned in my "Edit: " paragraph above. Thanks, maiki!