summaryrefslogtreecommitdiff
path: root/.library/IkiWiki/Plugin/field.pm
diff options
context:
space:
mode:
Diffstat (limited to '.library/IkiWiki/Plugin/field.pm')
-rw-r--r--.library/IkiWiki/Plugin/field.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/.library/IkiWiki/Plugin/field.pm b/.library/IkiWiki/Plugin/field.pm
index e53474e9..77247ad4 100644
--- a/.library/IkiWiki/Plugin/field.pm
+++ b/.library/IkiWiki/Plugin/field.pm
@@ -356,6 +356,9 @@ sub field_set_template_values ($$;@) {
my @parameter_names = $template->param();
foreach my $field (@parameter_names)
{
+ # Don't redefine if the field already has a value.
+ next if ($template->param($field));
+
my $type = $template->query(name => $field);
if ($type eq 'LOOP' and $field =~ /_LOOP$/i)
{