You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Or more specifically, your front matter itself can have hyphenated variable names, but you can't then reference those variables in your Hugo templates, which makes them useless. Apparently this is a limitation of the Go templating parser/lexer.
So how I came across this is that once I worked around #344, I found that anything with the variables like-of, bookmark-of, in-reply-to, repost-of and mp-syndicate-to would write successfully to my repository, but (after I edited my templates to use those variables) Hugo would then fail to build. The solution was quite easy: I just replaced the hyphens that would be printed to my interactions' front matter with underscores, which Hugo is fine with. So instead of these lines I have:
@jayeless Thanks for reporting. I have update the Hugo preset so that all frontmatter keys are now camelCased. I used this format as that appears to be the flavour favoured by Hugo.
Or more specifically, your front matter itself can have hyphenated variable names, but you can't then reference those variables in your Hugo templates, which makes them useless. Apparently this is a limitation of the Go templating parser/lexer.
So how I came across this is that once I worked around #344, I found that anything with the variables
like-of
,bookmark-of
,in-reply-to
,repost-of
andmp-syndicate-to
would write successfully to my repository, but (after I edited my templates to use those variables) Hugo would then fail to build. The solution was quite easy: I just replaced the hyphens that would be printed to my interactions' front matter with underscores, which Hugo is fine with. So instead of these lines I have:The text was updated successfully, but these errors were encountered: