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

Double input of a Staticman parameter #237

Closed
VincentTam opened this issue Jul 12, 2019 · 2 comments
Closed

Double input of a Staticman parameter #237

VincentTam opened this issue Jul 12, 2019 · 2 comments

Comments

@VincentTam
Copy link

In #224, Hugo's cache has been introduced so that user only needs to input reCAPTCHA parameters only once in the Staticman config file.

{{- $reCaptcha := $staticman.comments.reCaptcha | default ( dict "enabled" false ) -}}

Nonetheless, users have to input the branch twice, once in the theme config file and once in the Staticman config file. A little line like

{{- $branch := $staticman.comments.branch -}}

would make the whole thing consistent with your arguments for calling parameters from the Staticman config file.

MunifTanjim added a commit that referenced this issue Jul 12, 2019
@MunifTanjim
Copy link
Owner

@VincentTam check the latest commit: 4eb4160

@VincentTam
Copy link
Author

Thanks for commit.

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

2 participants