diff options
-rw-r--r-- | .library/IkiWiki/Plugin/field.pm | 3 | ||||
-rw-r--r-- | ikiwiki.setup | 2 |
2 files changed, 4 insertions, 1 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) { diff --git a/ikiwiki.setup b/ikiwiki.setup index 2a6e6540..4c61028f 100644 --- a/ikiwiki.setup +++ b/ikiwiki.setup @@ -339,7 +339,7 @@ IkiWiki::Setup::Standard->import({ # field plugin # simple registration of fields by plugin - field_register => {meta => 'last'}, + #field_register => {meta => 'last'}, # allow config settings to be queried #field_allow_config => 0, # fields flagged as tag-fields |