Skip to content

Commit 67c9577

Browse files
committed
Pretty about method
1 parent fdb76cf commit 67c9577

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

DB/lib/BlogDB/DB/Result/Blog.pm

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,4 +279,16 @@ sub get_votes {
279279
};
280280
}
281281

282+
# This is pretty janky.
283+
sub formatted_about {
284+
my ( $self ) = @_;
285+
286+
my $str;
287+
288+
foreach my $paragraph ( split /\n/, $self->about ) {
289+
$str .= '<p class="fs-5 mb-4">' . $paragraph . "</p>\n";
290+
}
291+
292+
return $str;
293+
}
282294
1;

0 commit comments

Comments
 (0)