A hosting service for Jekyll Blogs
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

17 lines
507 B

package MJB::Web::Plugin::Jekyll;
use Mojo::Base 'Mojolicious::Plugin', -signatures;
use MJB::Web::Plugin::Jekyll::Blog;
sub register ( $self, $app, $config ) {
$app->helper( jekyll => sub ($c, $domain) {
return MJB::Web::Plugin::Jekyll::Blog->new(
root => '/home/manager/mjb/Web/repos',
domain => $domain,
init_from => $c->config->{jekyll_init_repo},
repo => $c->config->{store_repo_base} . "$domain.git",
);
});
}
1;