refactor: move default parameter values from template logic to params.toml (#1244)

This commit is contained in:
Jimmy
2026-01-26 15:50:18 +01:00
committed by GitHub
parent 3b753c9cc0
commit 3a03d69502
11 changed files with 33 additions and 27 deletions
@@ -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) {