refactor: move default parameter values from template logic to params.toml (#1244)
This commit is contained in:
@@ -6,11 +6,11 @@
|
||||
site_id: '{{ .site }}',
|
||||
components: ['embed'],
|
||||
url: '{{ $.Permalink }}',
|
||||
max_shown_comments: {{ default 15 .max_shown_comments }},
|
||||
max_shown_comments: {{ .max_shown_comments }},
|
||||
theme: document.documentElement.dataset.scheme,
|
||||
page_title: '{{ $.Title }}',
|
||||
locale: '{{ default "en" .locale }}',
|
||||
show_email_subscription: {{ default true .show_email_subscription }}
|
||||
locale: '{{ .locale }}',
|
||||
show_email_subscription: {{ .show_email_subscription }}
|
||||
};
|
||||
|
||||
!function(e, n) {
|
||||
|
||||
Reference in New Issue
Block a user