summaryrefslogtreecommitdiffstats
path: root/.ikiwiki/IkiWiki
diff options
context:
space:
mode:
authorGustav Eek <gustav.eek@fripost.org>2019-12-14 15:58:21 +0100
committerGustav Eek <gustav.eek@fripost.org>2020-01-06 16:25:10 +0100
commit4f56301fff832189cb253ef98e62a064f82e2c54 (patch)
treee041b22ef6de9dd64a7a6612b1d92bc5a5ac8e33 /.ikiwiki/IkiWiki
parente3c2724ff3d35ba4c1a37bbf3573a41b024edffc (diff)
Refactor. Move lists of meta lables to promote to top of file
Diffstat (limited to '.ikiwiki/IkiWiki')
-rwxr-xr-x.ikiwiki/IkiWiki/Plugin/pandoc.pm19
1 files changed, 13 insertions, 6 deletions
diff --git a/.ikiwiki/IkiWiki/Plugin/pandoc.pm b/.ikiwiki/IkiWiki/Plugin/pandoc.pm
index 4a7eb31..0de38ff 100755
--- a/.ikiwiki/IkiWiki/Plugin/pandoc.pm
+++ b/.ikiwiki/IkiWiki/Plugin/pandoc.pm
@@ -33,6 +33,17 @@ my %extra_formats = (
latex => { ext=>'tex', label=>'LaTeX', format=>'latex', extra=>['--standalone'], order=>7 },
);
+my @scalar_meta_keys = qw/
+ title date bibliography csl subtitle abstract summary description
+ version lang locale titlesort tag fripost_debug_inner
+ /;
+
+my @list_meta_keys = qw/
+ author
+ /;
+
+ /;
+
sub debug_get_filename_prefix {
my $place = shift;
@@ -549,15 +560,11 @@ sub htmlize ($@) {
# as well as some configuration options (generate_*, *_extra_options, *_template).
my @format_keys = grep { $_ ne 'pdf' } keys %extra_formats;
- my %scalar_meta = map { ($_=>undef) } qw(
- title date bibliography csl subtitle abstract summary
- description version lang locale
- titlesort tag
- );
+ my %scalar_meta = map { ($_=>undef) } @scalar_meta_keys;
$scalar_meta{$_.'_template'} = undef for @format_keys;
my %bool_meta = map { ("generate_$_"=>0) } keys %extra_formats;
- my %list_meta = map { ($_=>[]) } qw/author references tags/;
+ my %list_meta = map { ($_=>[]) } @list_meta_keys;
$list_meta{$_.'_extra_options'} = [] for @format_keys;
my $have_bibl = 0;