Skip to content
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

Error If no author link is set #36

Open
appernetic opened this issue Aug 31, 2018 · 1 comment
Open

Error If no author link is set #36

appernetic opened this issue Aug 31, 2018 · 1 comment

Comments

@appernetic
Copy link
Collaborator

appernetic commented Aug 31, 2018

This is not working if there is no authorlink set in config.

Not working when remarked:

#authorLink = "test@email"

but this works:

authorLink = "test@email"

In layout/_default/single.html:

Error while rendering "page" in "post/": template: _default/single.html:104:78: executing "main" at : wrong number of args for absURL: want 1 got 0

{{ $writer.link | default .Site.Params.authorlink | absURL}}

I thought that this would take care of missing config options (which is above the absurl link):

{{ if and (isset .Site.Params "authorlink") .Site.Params.authorLink }}

but it's not.

@MatthewMcD
Copy link
Contributor

I have a fix for this, but it involves the same pages that I changed for PR #56 . I'll post the PR after I see that you are OK with PR #56. I'll merge it on my end and be certain there are no conflicts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant