|
|
|
|
@ -206,7 +206,6 @@ sub blog_settings ($c) { |
|
|
|
|
$c->stash->{form}->{email} = $data->{email}; |
|
|
|
|
$c->stash->{form}->{twitter_username} = $data->{twitter_username}; |
|
|
|
|
$c->stash->{form}->{github_username} = $data->{github_username}; |
|
|
|
|
$c->stash->{form}->{theme} = $data->{theme}; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#== |
|
|
|
|
@ -227,14 +226,12 @@ sub do_blog_settings ($c) { |
|
|
|
|
my $email = $c->stash->{form}->{email} = $c->param( 'configEmail' ); |
|
|
|
|
my $twitter_username = $c->stash->{form}->{twitter_username} = $c->param( 'configTwitterUsername' ); |
|
|
|
|
my $github_username = $c->stash->{form}->{github_username} = $c->param( 'configGithubUsername' ); |
|
|
|
|
my $theme = $c->stash->{form}->{theme} = $c->param( 'configTheme' ); |
|
|
|
|
|
|
|
|
|
$jekyll->config->data->{title} = $title; |
|
|
|
|
$jekyll->config->data->{description} = $desc; |
|
|
|
|
$jekyll->config->data->{email} = $email; |
|
|
|
|
$jekyll->config->data->{twitter_username} = $twitter_username; |
|
|
|
|
$jekyll->config->data->{github_username} = $github_username; |
|
|
|
|
$jekyll->config->data->{theme} = $theme; |
|
|
|
|
|
|
|
|
|
$jekyll->write_config; |
|
|
|
|
|
|
|
|
|
|