xsawyerx / PearlBee

Blogging system in Modern Perl
6 stars 2 forks source link

Hard-coded values #1

Open xsawyerx opened 8 years ago

xsawyerx commented 8 years ago

A bunch of stuff are hard-coded.

book commented 8 years ago

The config.yml file has a posts_on_page setting, that is once used to set the value for $nr_of_rows:

# lib/PearlBee/Posts.pm
        my $nr_of_rows
            = config->{'posts_on_page'} || 5; # Number of posts per page

So I'll do the following: