Skip to content

Commit

Permalink
Pretty about method
Browse files Browse the repository at this point in the history
  • Loading branch information
symkat committed Nov 29, 2021
1 parent fdb76cf commit 67c9577
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions DB/lib/BlogDB/DB/Result/Blog.pm
Expand Up @@ -279,4 +279,16 @@ sub get_votes {
};
}

# This is pretty janky.
sub formatted_about {
my ( $self ) = @_;

my $str;

foreach my $paragraph ( split /\n/, $self->about ) {
$str .= '<p class="fs-5 mb-4">' . $paragraph . "</p>\n";
}

return $str;
}
1;

0 comments on commit 67c9577

Please sign in to comment.